[issue26047] argparse.ArgumentError documentation wrong

2016-01-08 Thread SilentGhost

SilentGhost added the comment:

Christof, you'd have to demonstrate the issue in more than just words. The 
returned status code is hard-coded to be 2 in the error method and it does end 
up being 2 when i run, could you post some output that led you to believe that 
it is 1?

--
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26047] argparse.ArgumentError documentation wrong

2016-01-08 Thread Christof Hanke

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@python
components: Documentation
messages: 257745
nosy: Christof Hanke, docs@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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com