PEP proposal optparse
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Thu Sep 18 13:00:26 EDT 2008
On Thu, 18 Sep 2008 11:07:45 -0500, Grant Edwards wrote:
> While we're making suggestions, I've always wished that the --help
> output displayed the default values for options in addition to the help
> text specified by the user. I end up having to enter the default values
> twice -- once as a keyword argument and again in the help text.
'%default' in the help text will be replaced by the default value. See
the last option in the first example here:
http://docs.python.org/lib/optparse-generating-help.html
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list