Fix autocompletion.
This commit is contained in:
parent
f371a6146e
commit
b6eb7d9af8
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user