main: improved parameter descriptions

This commit is contained in:
juk0de 2023-10-20 08:57:12 +02:00
parent 7d0f8b3640
commit 9c7483ec51

View File

@ -69,8 +69,8 @@ def create_parser() -> argparse.ArgumentParser:
question_cmd_parser.add_argument('-l', '--location', question_cmd_parser.add_argument('-l', '--location',
choices=[x.value for x in msg_location], choices=[x.value for x in msg_location],
default='db', default='db',
help='Select message location, default is \'db\'') help='Use given location when building the chat history (default: \'db\')')
question_cmd_parser.add_argument('-g', '--glob', help='Glob for message file names') question_cmd_parser.add_argument('-g', '--glob', help='Filter message files using the given glob pattern')
question_cmd_parser.add_argument('-O', '--overwrite', help='Overwrite existing messages when repeating them', question_cmd_parser.add_argument('-O', '--overwrite', help='Overwrite existing messages when repeating them',
action='store_true') action='store_true')
question_cmd_parser.add_argument('-s', '--source-text', nargs='+', help='Add content of a file to the query', metavar='FILE') question_cmd_parser.add_argument('-s', '--source-text', nargs='+', help='Add content of a file to the query', metavar='FILE')
@ -96,8 +96,8 @@ def create_parser() -> argparse.ArgumentParser:
hist_cmd_parser.add_argument('-l', '--location', hist_cmd_parser.add_argument('-l', '--location',
choices=[x.value for x in msg_location], choices=[x.value for x in msg_location],
default='db', default='db',
help='Select message location, default is \'db\'') help='Use given location when building the chat history (default: \'db\')')
hist_cmd_parser.add_argument('-g', '--glob', help='Glob for message file names') hist_cmd_parser.add_argument('-g', '--glob', help='Filter message files using the given glob pattern')
# 'tags' command parser # 'tags' command parser
tags_cmd_parser = cmdparser.add_parser('tags', tags_cmd_parser = cmdparser.add_parser('tags',