Message75741
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). |
|
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 | |
|