Skip to content

Commit ffaabb1

Browse files
committed
feat: add --update to match client spec
1 parent 6536569 commit ffaabb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tldr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def create_parser() -> ArgumentParser:
428428
type=str,
429429
help="Search for a specific command from a query")
430430

431-
parser.add_argument('-u', '--update_cache',
431+
parser.add_argument('-u', '--update', '--update_cache',
432432
action='store_true',
433433
help="Update the local cache of pages and exit")
434434

@@ -500,7 +500,7 @@ def main() -> None:
500500
if options.color is False:
501501
os.environ["FORCE_COLOR"] = "true"
502502

503-
if options.update_cache:
503+
if options.update:
504504
update_cache(language=options.language)
505505
return
506506
elif len(sys.argv) == 1:

0 commit comments

Comments
 (0)