Re: STD_HELP_OPTION and STD_VERSION_OPTION

David Goodger <[email protected]> Mon, 12 May 2003 00:07:58 -0400
Newsgroups gmane.comp.python.optik.user
Message-ID <[email protected]>
Greg Ward wrote:
> Is anyone taking advantage of the fact that STD_HELP_OPTION and
> STD_VERSION_OPTION are exported by Optik, and that you can override them
> by assigning to optik.option_parser.STD_{HELP,VERSION}_OPTION.

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

-- David Goodger



-------------------------------------------------------
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