PEP proposal optparse
Grant Edwards
invalid at invalid
Thu Sep 18 13:47:41 EDT 2008
On 2008-09-18, Marc 'BlackJack' Rintsch <bj_666 at gmx.net> wrote:
> 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
Great! I guess I should scan the doc pages for changes more
often.
--
Grant Edwards grante Yow! The Korean War must
at have been fun.
visi.com
More information about the Python-list
mailing list