Message132325
I'm moving this over to Issue 11695, which proposes support for a usage/help message template.
To customize the argument group names, the recommended approach is to create your own argument groups, and only put arguments there, e.g.:
parser = argparse.ArgumentParser(add_help=False)
flags = parser.add_argument_group('My Optional Arguments')
flags.add_argument('-h', '--help', action='help')
flags.add_argument('-v', action='version', version='1.3')
Then you'll get just the "My Optional Arguments" heading. |
|
Date |
User |
Action |
Args |
2011-03-27 14:09:32 | bethard | set | recipients:
+ bethard, terry.reedy, r.david.murray, Tom.Browder |
2011-03-27 14:09:31 | bethard | set | messageid: <1301234971.91.0.177106251461.issue9652@psf.upfronthosting.co.za> |
2011-03-27 14:09:31 | bethard | link | issue9652 messages |
2011-03-27 14:09:31 | bethard | create | |
|