Steven Bethard <steven.beth...@gmail.com> added the comment:

Not sure, but I think _print_message in argparse isn't exactly what the OP is 
looking for if they really only care about errors. If you want to override how 
errors are printed, then it's absolutely correct to override the error method 
(in argparse at least), and your overridden method should be given every 
message that is normally printed as an error.

If by errors, you mean "anything the parser might print out" (e.g. the output 
of "--help"), then you may indeed want _print_message to become public so you 
can override it. Let me know.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4297>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to