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 bethard
Date 2011-03-27.14:05:43
SpamBayes Score 2.8956948e-10
Marked as misclassified No
Message-id <1301234745.11.0.232414036754.issue11695@psf.upfronthosting.co.za>
In-reply-to
Content
I'm going to try to merge several closely related issues here. Basically, people would like better control over the usage message formatting so that you could:

* Put program name and version information at the top of the message
* Customize the "usage:" string (e.g. capitalize it)

One proposal from anatoly techtonik would be to allow a format string so that you could write something like

"""My Program, version 3.5
Usage: %(usage)s

Some description of my program

%(argument_groups)%

My epliog text
"""

This should be implemented as a HelpFormatter class, but we might have to expose a little more of the HelpFormatter API (which is currently documented as a no-public API) to make this possible.

Patches welcome. ;-)
History
Date User Action Args
2011-03-27 14:05:45bethardsetrecipients: + bethard
2011-03-27 14:05:45bethardsetmessageid: <1301234745.11.0.232414036754.issue11695@psf.upfronthosting.co.za>
2011-03-27 14:05:43bethardlinkissue11695 messages
2011-03-27 14:05:43bethardcreate