This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bethard
Recipients Tom.Browder, bethard, r.david.murray, terry.reedy
Date 2011-03-27.14:09:31
SpamBayes Score 0.06478939
Marked as misclassified No
Message-id <1301234971.91.0.177106251461.issue9652@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-03-27 14:09:32bethardsetrecipients: + bethard, terry.reedy, r.david.murray, Tom.Browder
2011-03-27 14:09:31bethardsetmessageid: <1301234971.91.0.177106251461.issue9652@psf.upfronthosting.co.za>
2011-03-27 14:09:31bethardlinkissue9652 messages
2011-03-27 14:09:31bethardcreate