diff options
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 163809706..9e71108ab 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -20,7 +20,6 @@ from .postprocessor import ( SponsorBlockPP, ) from .postprocessor.modify_chapters import DEFAULT_SPONSORBLOCK_CHAPTER_TITLE -from .update import UPDATE_SOURCES, detect_variant, is_non_updateable from .utils import ( OUTTMPL_TYPES, POSTPROCESS_WHEN, @@ -157,7 +156,7 @@ class _YoutubeDLOptionParser(optparse.OptionParser): def __init__(self): super().__init__( - prog='yt-dlp' if detect_variant() == 'source' else None, + prog='yt-dlp', version=__version__, usage='%prog [OPTIONS] URL [URL...]', epilog='See full documentation at https://github.com/yt-dlp/yt-dlp#readme', @@ -323,23 +322,6 @@ def create_parser(): action='version', help='Print program version and exit') general.add_option( - '-U', '--update', - 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')) - general.add_option( - '--no-update', - action='store_false', dest='update_self', - help='Do not check for updates (default)') - general.add_option( - '--update-to', - action='store', dest='update_self', metavar='[CHANNEL]@[TAG]', - help=( - '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', help='Ignore download and postprocessing errors. The download will be considered successful even if the postprocessing fails') |