aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorSimon Sawicki <contact@grub4k.xyz>2023-05-20 21:21:32 +0200
committerSimon Sawicki <contact@grub4k.xyz>2023-05-20 21:21:32 +0200
commit665472a7de3880578c0b7b3f95c71570c056368e (patch)
treeb6c332d10ccf9d2743cfef9b20b1fabd00abd7cb /yt_dlp/options.py
parentd2e84d5eb01c66fc5304e8566348d65a7be24ed7 (diff)
downloadhypervideo-pre-665472a7de3880578c0b7b3f95c71570c056368e.tar.lz
hypervideo-pre-665472a7de3880578c0b7b3f95c71570c056368e.tar.xz
hypervideo-pre-665472a7de3880578c0b7b3f95c71570c056368e.zip
[update] Implement `--update-to` repo
Authored by: Grub4K, pukkandan
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index dc46ce998..838d79fcb 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -323,7 +323,7 @@ def create_parser():
help='Print program version and exit')
general.add_option(
'-U', '--update',
- action='store_true', dest='update_self',
+ action='store_const', dest='update_self', const=CHANNEL,
help=format_field(
is_non_updateable(), None, 'Check if updates are available. %s',
default=f'Update this program to the latest {CHANNEL} version'))
@@ -335,9 +335,9 @@ def create_parser():
'--update-to',
action='store', dest='update_self', metavar='[CHANNEL]@[TAG]',
help=(
- 'Upgrade/downgrade to a specific version. CHANNEL and TAG defaults to '
- f'"{CHANNEL}" and "latest" respectively if omitted; See "UPDATE" for details. '
- f'Supported channels: {", ".join(UPDATE_SOURCES)}'))
+ 'Upgrade/downgrade to a specific version. CHANNEL can be a repository as well. '
+ f'CHANNEL and TAG default to "{CHANNEL.partition("@")[0]}" and "latest" respectively if omitted; '
+ f'See "UPDATE" for details. Supported channels: {", ".join(UPDATE_SOURCES)}'))
general.add_option(
'-i', '--ignore-errors',
action='store_true', dest='ignoreerrors',