diff --git a/tldr.py b/tldr.py index 869b6eb..86b9e27 100755 --- a/tldr.py +++ b/tldr.py @@ -428,7 +428,7 @@ def create_parser() -> ArgumentParser: type=str, help="Search for a specific command from a query") - parser.add_argument('-u', '--update_cache', + parser.add_argument('-u', '--update', '--update_cache', action='store_true', help="Update the local cache of pages and exit") @@ -500,7 +500,7 @@ def main() -> None: if options.color is False: os.environ["FORCE_COLOR"] = "true" - if options.update_cache: + if options.update: update_cache(language=options.language) return elif len(sys.argv) == 1: