[issue9112] argparse missing documentation for error() method

New submission from Mark Summerfield mark@qtrac.eu:
The argparse module's ArgumentParser class has an error() method that appears to have the same behavior as the optparse error() method, but this method is not mentioned in the documentation.
---------- assignee: docs@python components: Documentation messages: 108896 nosy: docs@python, mark priority: normal severity: normal status: open title: argparse missing documentation for error() method versions: Python 2.7, Python 3.2
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9112 _______________________________________

Changes by R. David Murray rdmurray@bitdance.com:
---------- nosy: +bethard
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9112 _______________________________________

Sandro Tosi sandro.tosi@gmail.com added the comment:
Hello, attached a patch that adds the exiting methods (exit() and error()) to argparse documentation.
Regards, Sandro
---------- keywords: +patch nosy: +sandro.tosi Added file: http://bugs.python.org/file19070/issue9112-py3k.patch
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9112 _______________________________________

Georg Brandl georg@python.org added the comment:
Committed after review in r85622. Thanks!
---------- nosy: +georg.brandl resolution: -> fixed status: open -> closed
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9112 _______________________________________
participants (4)
-
Georg Brandl
-
Mark Summerfield
-
R. David Murray
-
Sandro Tosi