Don't show long options twice in print_help() from argparse
I have the following code: parser = argparse.ArgumentParser(description='Postfix Queue Administration Tool', prog='pqa', usage='%(prog)s [-h] [-v,--version]') parser.add_argument('-l', '--list', action='store_true', help='Shows full overview of all queues') parser.add_argument('-q', '--queue', action='store', metavar='<queue>', dest='queue', help='Show information for <queue>') parser.add_argument('-d', '--domain', action='store', metavar='<domain>', dest='domain', help='Show information about a specific <domain>') parser.add_argument('-v', '--version', action='version', version='%(prog)s 0.1'