New submission from Mark Summerfield email@example.com:
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
Sandro Tosi firstname.lastname@example.org added the comment:
Hello, attached a patch that adds the exiting methods (exit() and error()) to argparse documentation.
---------- keywords: +patch nosy: +sandro.tosi Added file: http://bugs.python.org/file19070/issue9112-py3k.patch
Georg Brandl email@example.com added the comment:
Committed after review in r85622. Thanks!
---------- nosy: +georg.brandl resolution: -> fixed status: open -> closed