PEP proposal optparse

Marc 'BlackJack' Rintsch bj_666 at
Thu Sep 18 19:00:26 CEST 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:

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list