[issue20333] argparse subparser usage message hides main parser usage
New submission from Martin d'Anjou: Consider the following code: #!/usr/bin/env python3 import argparse # create the top-level parser parser = argparse.ArgumentParser(prog='PROG') parser.add_argument('--file', help='A filename', required=True) subparser
[issue9694] argparse required arguments displayed under "optional arguments"
Martin d'Anjou added the comment: How about calling required arguments "required arguments"? required arguments: --reqarg REQARG, -r REQARG This is required optional arguments: -h, --helpshow this help message and exit --optarg OP