]> jfr.im git - yt-dlp.git/commitdiff
Add `--no-update`
authorpukkandan <redacted>
Mon, 13 Jun 2022 13:45:54 +0000 (19:15 +0530)
committerpukkandan <redacted>
Mon, 13 Jun 2022 13:45:54 +0000 (19:15 +0530)
Closes #4060

README.md
yt_dlp/options.py

index af613ff7e442e5cebb0ebebabc21925920494de6..97079f6461d312ba84e5d3d2a3201f77720175e0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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
index 9e36e1c52795b1118257f947749781d95d26c91e..91e7c1f827d61c9c50e8eb4d03bfd47749596096 100644 (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',