Re: exit status
Greg Ward <[email protected]> Sun, 22 Jun 2003 16:14:46 -0400
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
On 21 June 2003, David Goodger said:
> Greg Ward wrote:
> >Oh crap, you're right. OK, I'm back to my old stance: change it to
> >exit(2) if you want, I don't care either way.
> >
> >Hmmmm: shouldn't the usage go to stderr if it results from an error?
>
> Yes, it should. The docstring said so. Fixed in CVS.
Actually, your checkin prompted me to check the code and test it. Optik
*was* sending the usage message to stderr already! So I reverted part
of your patch to keep OptionParser.error() using the print_usage()
method. Works fer me.
Greg
--
Greg Ward <[email protected]> http://www.gerg.ca/
God is omnipotent, omniscient, and omnibenevolent
---it says so right here on the label.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php