Message75741
| Author |
odd_bloke |
| Recipients |
odd_bloke |
| Date |
2008年11月11日.14:22:56 |
| SpamBayes Score |
0.00029759525 |
| Marked as misclassified |
No |
| Message-id |
<1226413379.99.0.188665223227.issue4297@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I've recently had to subclass optparse.OptionParser, and copy-paste the
exit method, just to change where errors were printed to (I needed
stdout rather than stderr). I've also had a request from a client to
log errors with command-line parsing to a file, rather than to stdout.
So, this patch adds an error_log parameter to OptionParser.__init__
which is used instead of stderr internally (and, of course, defaults to
stderr). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年11月11日 14:23:00 | odd_bloke | set | recipients:
+ odd_bloke |
| 2008年11月11日 14:22:59 | odd_bloke | set | messageid: <1226413379.99.0.188665223227.issue4297@psf.upfronthosting.co.za> |
| 2008年11月11日 14:22:58 | odd_bloke | link | issue4297 messages |
| 2008年11月11日 14:22:58 | odd_bloke | create |
|