Re: STD_HELP_OPTION and STD_VERSION_OPTION

Greg Ward <[email protected]> Mon, 12 May 2003 20:57:23 -0400
Newsgroups gmane.comp.python.optik.user
Message-ID <[email protected]>
On 12 May 2003, David Goodger said:
> Assigning to another module's attribute without explicit permission 
> would be a really obscure and dirty trick.  Any code that depended on 
> that would deserve to break, IMHO.

Yep.

> In Docutils we don't use the 
> standard help option, but install our own through subclassing 
> OptionParser and passing "help=None" to OptionParser.__init__.

Is it just because you don't like my default help string for the --help
option?  Or something deeper?

Anyways, in Optik 1.4.2, you'll have a much cleaner way of doing this:
override OptionParser._add_help_option().

        Greg
-- 
Greg Ward <[email protected]>                         http://www.gerg.ca/
Clarke's Law, redux:
Any sufficiently advanced technology is indistinguishable from a rigged demo.


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com