[New-bugs-announce] [issue18790] incorrect text in argparse add_help example

purplezephyr report at bugs.python.org
Tue Aug 20 20:58:24 CEST 2013


New submission from purplezephyr:

The last example under add_help in the documentation for the argparse module has incorrect text.  It is supposed to demonstrate what happens when prefix_chars doesn't include '-', and add_help is True, but the example has the following:

  usage: PROG [-h]

  optional arguments:
    -h, --help  show this help message and exit

instead of:

  usage: PROG [+h]

  optional arguments:
    +h, ++help  show this help message and exit

----------
assignee: docs at python
components: Documentation
messages: 195710
nosy: docs at python, purplezephyr
priority: normal
severity: normal
status: open
title: incorrect text in argparse add_help example
versions: Python 2.7, Python 3.3

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


More information about the New-bugs-announce mailing list