Re: exit status
Greg Ward <[email protected]> Thu, 12 Jun 2003 21:28:24 -0400
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
On 12 June 2003, David Goodger said:
> Shouldn't optik/optparse produce an exit status of 2 in
> OptionParser.error? It's currently producing exit status 1. From the
> "sys" module docs,
>
> exit([arg])
> Exit from Python. ... The optional argument arg can be an
> integer giving the exit status ... Unix programs generally use
> 2 for command line syntax errors and 1 for all other kind of
> errors.
Got any more compelling source than that? On my Debian box, cp, ls,
file, and rcs exit 1 on bad option; tar, diff, grep, and Python itself
exit 2. It's a draw so far.
Greg
--
Greg Ward <[email protected]> http://www.gerg.ca/
The world is coming to an end. Please log off.
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5