How to handle two-level option processing with optparse

Steven Bethard steven.bethard at gmail.com
Thu Jan 26 16:41:52 EST 2006


R. Bernstein wrote:
> Magnus Lycka informs:
>> [in response to my comment]:
>>> I see how I missed this. Neither disable_.. or enable_.. have document
>>> strings. And neither seem to described in the optparser section (6.21)
>>> of the Python Library (http://docs.python.org/lib/module-optparse.html).
>> http://docs.python.org/lib/optparse-other-methods.html
> 
> Hmmm. A couple things are a little odd about this. First "Other
> methods" seems to be a grab-bag category. A place to put something
> when you don't know where-else to put it. The section called:
> "Querying and manipulating your option parser" seems closer. Better I 
> think if the title were changed slightly to 
> 
>   Querying, manipulating, and changing the default behavior of your
>   option parse
> 
> Second, oddly I can't find this section "Other Methods" in the current
> Python SVN source Doc/lib/liboptparse.tex. Best as I can tell, that
> file does seem to be the section documenting optparse.

Sounds like you should submit a documentation bug:
     http://sourceforge.net/tracker/?group_id=5470&atid=105470
Plain text is fine -- just explain what needs to be changed.

Thanks!

STeVe



More information about the Python-list mailing list