0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

Add --no-update

Closes #4060
This commit is contained in:
pukkandan 2022-06-13 19:15:54 +05:30
parent e3aae45a6f
commit d32f30ac48
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
2 changed files with 5 additions and 0 deletions

View file

@ -325,6 +325,7 @@ ## General Options:
-h, --help Print this help text and exit
--version Print program version and exit
-U, --update Update this program to latest version
--no-update Do not update (default)
-i, --ignore-errors Ignore download and postprocessing errors.
The download will be considered successful
even if the postprocessing fails

View file

@ -312,6 +312,10 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
'-U', '--update',
action='store_true', dest='update_self',
help='Update this program to latest version')
general.add_option(
'--no-update',
action='store_false', dest='update_self',
help='Do not update (default)')
general.add_option(
'-i', '--ignore-errors',
action='store_true', dest='ignoreerrors',