PEP proposal optparse

Tim Chase python.list at tim.thechases.com
Thu Sep 18 12:27:42 EDT 2008


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.  Then later when I decide
> to change the default value, things get out-of-sync.

Tangential to this thread, what's the preferred way to get 
changes into optparse?  Based on the comments I've read in the 
optparse.py file, it looks like it's the generated output of some 
other process.  I've patched my local version to include some 
changes for handling newlines in help text (which has cropped up 
on the list occasionally, as the current version eats newlines), 
but am not sure whether I need to be patching against the 
optparse.py or against the file that generated it (which I don't 
have in my install, AFAIK).

Perhaps one of the core devs that works on optparse could tell me 
how they'd prefer such changes submitted?

Thanks,

-tkc






More information about the Python-list mailing list