From 7ec78da0a4b3b38c98be276b2f70feb8b0368e04 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 25 Oct 2021 13:22:08 -0700 Subject: [PATCH] Improve channel_list helptext with examples, "flags". --- frontends/ycdl_cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontends/ycdl_cli.py b/frontends/ycdl_cli.py index 83f04f0..00df1d1 100644 --- a/frontends/ycdl_cli.py +++ b/frontends/ycdl_cli.py @@ -148,12 +148,17 @@ channel_list: > ycdl_cli.py channel_list + flags: --format X: A string like "{id}: {name}" to format the attributes of the channel. The available attributes are id, name, automark, autorefresh, uploads_playlist queuefile_extension. - > ycdl_cli.py list_channels + > ycdl_cli.py channel_list + + Example: + > ycdl_cli.py channel_list + > ycdl_cli.py channel_list --format "{id} automark={automark}" '''.strip(), delete_channel=''' @@ -191,6 +196,7 @@ refresh_channels: --force: If omitted, only new videos are downloaded. If included, channels are refreshed completely. + Examples: > ycdl_cli.py refresh_channels --force > ycdl_cli.py refresh_channels --channels UC1_uAIS3r8Vu6JjXWvastJg