aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-07-29 20:33:01 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-08-09 01:08:48 +0530
commit70b2340909d8d917f71d20181614fd7392d3f7f0 (patch)
tree9836125a25c94260c99040cb4d73f302257bd924 /yt_dlp/options.py
parent115add43876964956917bf596c1d0b148c5b3c26 (diff)
downloadhypervideo-pre-70b2340909d8d917f71d20181614fd7392d3f7f0.tar.lz
hypervideo-pre-70b2340909d8d917f71d20181614fd7392d3f7f0.tar.xz
hypervideo-pre-70b2340909d8d917f71d20181614fd7392d3f7f0.zip
[build, devscripts] Add devscript to set a build variant
Closes #4471
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index b70f5798e..2c7f686dd 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -20,12 +20,13 @@ from .postprocessor import (
SponsorBlockPP,
)
from .postprocessor.modify_chapters import DEFAULT_SPONSORBLOCK_CHAPTER_TITLE
-from .update import detect_variant
+from .update import detect_variant, is_non_updateable
from .utils import (
OUTTMPL_TYPES,
POSTPROCESS_WHEN,
Config,
expand_path,
+ format_field,
get_executable_path,
join_nonempty,
remove_end,
@@ -333,11 +334,13 @@ def create_parser():
general.add_option(
'-U', '--update',
action='store_true', dest='update_self',
- help='Update this program to latest version')
+ help=format_field(
+ is_non_updateable(), None, 'Check if updates are available. %s',
+ default='Update this program to the latest version'))
general.add_option(
'--no-update',
action='store_false', dest='update_self',
- help='Do not update (default)')
+ help='Do not check for updates (default)')
general.add_option(
'-i', '--ignore-errors',
action='store_true', dest='ignoreerrors',