Add `--no-update`

Closes #4060
pull/4009/head^2
pukkandan 3 years ago
parent e3aae45a6f
commit d32f30ac48
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -325,6 +325,7 @@ You can also fork the project on github and run your fork's [build workflow](.gi
-h, --help Print this help text and exit -h, --help Print this help text and exit
--version Print program version and exit --version Print program version and exit
-U, --update Update this program to latest version -U, --update Update this program to latest version
--no-update Do not update (default)
-i, --ignore-errors Ignore download and postprocessing errors. -i, --ignore-errors Ignore download and postprocessing errors.
The download will be considered successful The download will be considered successful
even if the postprocessing fails even if the postprocessing fails

@ -312,6 +312,10 @@ def create_parser():
'-U', '--update', '-U', '--update',
action='store_true', dest='update_self', action='store_true', dest='update_self',
help='Update this program to latest version') 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( general.add_option(
'-i', '--ignore-errors', '-i', '--ignore-errors',
action='store_true', dest='ignoreerrors', action='store_true', dest='ignoreerrors',

Loading…
Cancel
Save