Fix autocompletion.

This commit is contained in:
Oleksandr Kozachuk 2023-08-12 13:57:52 +02:00
parent f371a6146e
commit b6eb7d9af8

View File

@ -152,7 +152,6 @@ def create_parser() -> argparse.ArgumentParser:
help="All given tags must match when selecting chat history entries",
action='store_true')
# enable autocompletion for tags
argcomplete.autocomplete(tag_parser)
# 'ask' command parser
ask_cmd_parser = cmdparser.add_parser('ask', parents=[tag_parser],
@ -204,6 +203,7 @@ def create_parser() -> argparse.ArgumentParser:
print_cmd_parser.add_argument('-S', '--only-source-code', help='Print only source code',
action='store_true')
argcomplete.autocomplete(parser)
return parser