use ArgumentParser's own "usage" line in help output

This commit is contained in:
Hans-Christoph Steiner 2020-10-01 12:17:02 +02:00
parent b23cf9f8ad
commit fede58a710
10 changed files with 10 additions and 14 deletions

View file

@ -597,7 +597,7 @@ def main():
global config, options
# Parse command line...
parser = ArgumentParser(usage="%(prog)s [options] [APPID [APPID ...]]")
parser = ArgumentParser()
common.setup_global_opts(parser)
parser.add_argument("appid", nargs='*', help=_("application ID of file to operate on"))
parser.add_argument("--auto", action="store_true", default=False,