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 sanders
Recipients georg.brandl, sanders
Date 2010-03-16.18:21:03
SpamBayes Score 3.5668717e-09
Marked as misclassified No
Message-id <1268763667.28.0.98928586354.issue8158@psf.upfronthosting.co.za>
In-reply-to
Content
The class optparse.OptionParser supports a number of useful keyword arguments to the initializer, which are not documented in the Python Standard Library documentation, here: http://docs.python.org/library/optparse.html

This is a bit unfortunate. For example, I wanted to add a description to the top of my script's help page and a copyright notice to the foot, and was already about to subclass OptionParser in order to override the format_help method, when I noticed that optional keyword arguments 'description' and 'epilog' are provided for precisely this purpose.

The 'epilog' attribute is at least mentioned in the class's docstring, while the 'description' argument is completely undocumented. I doubt that this was done on purpose.

I'd suggest to go over the documentation page for optparse and fill in the missing bits; at minimum, list all keyword arguments to optparse.OptionParser.__init__.
History
Date User Action Args
2010-03-16 18:21:07sanderssetrecipients: + sanders, georg.brandl
2010-03-16 18:21:07sanderssetmessageid: <1268763667.28.0.98928586354.issue8158@psf.upfronthosting.co.za>
2010-03-16 18:21:04sanderslinkissue8158 messages
2010-03-16 18:21:03sanderscreate