From d32f30ac485e477fd6ba043c2342d12f2498c943 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 13 Jun 2022 19:15:54 +0530 Subject: [PATCH] Add `--no-update` Closes #4060 --- README.md | 1 + yt_dlp/options.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index af613ff7e..97079f646 100644 --- 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 diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 9e36e1c52..91e7c1f82 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -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',