[update] implement '--update-check'

to check if a new update is available without downloading it
This commit is contained in:
Mike Fährmann
2024-05-28 02:24:17 +02:00
parent 2e323ef0a2
commit 5018bd42f8
2 changed files with 44 additions and 20 deletions

View File

@@ -179,9 +179,14 @@ def build_parser():
dest="update", action="store_const", const="latest",
help="Update to the latest version",
)
general.add_argument(
"--update-check",
dest="update", action="store_const", const="check",
help="Check if a newer version is available",
)
else:
general.add_argument(
"-U", "--update",
"-U", "--update-check",
dest="update", action="store_const", const="check",
help="Check if a newer version is available",
)