[New-bugs-announce] [issue26047] argparse.ArgumentError documentation wrong

Christof Hanke report at bugs.python.org
Fri Jan 8 04:18:18 EST 2016


New submission from Christof Hanke:

On https://docs.python.org/2/library/argparse.html (and on those of the 3.6-Version) it says at the bottom:

"""

ArgumentParser.error(message)

    This method prints a usage message including the message to the standard error and terminates the program with a status code of 2.
"""

In fact, the returned staus code is 1.

----------
assignee: docs at python
components: Documentation
messages: 257745
nosy: Christof Hanke, docs at python
priority: normal
severity: normal
status: open
title: argparse.ArgumentError documentation wrong
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26047>
_______________________________________


More information about the New-bugs-announce mailing list