homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:00odd_blokesetrecipients: + odd_bloke
2008年11月11日 14:22:59odd_blokesetmessageid: <1226413379.99.0.188665223227.issue4297@psf.upfronthosting.co.za>
2008年11月11日 14:22:58odd_blokelinkissue4297 messages
2008年11月11日 14:22:58odd_blokecreate

AltStyle によって変換されたページ (->オリジナル) /