This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: incorrect text in argparse add_help example
Type: Stage: resolved
Components: Documentation Versions: Python 3.3, Python 3.4, Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: berker.peksag, biko, docs@python, ezio.melotti, georg.brandl, purplezephyr
Priority: normal Keywords: patch

Created on 2013-08-20 18:58 by purplezephyr, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
doc_fix.patch biko, 2013-08-21 06:29 updated documentation review
Messages (4)
msg195710 - (view) Author: (purplezephyr) Date: 2013-08-20 18:58
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
msg198033 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2013-09-18 20:17
This was reported a couple of times before on the docs list.

msg199044 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2013-10-06 08:24
This is fixed by changesets:

- (3.4)
- (3.3)
- (2.7)
msg199048 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2013-10-06 08:33
Thanks for closing this!
Date User Action Args
2022-04-11 14:57:49adminsetgithub: 62990
2013-10-06 08:33:05georg.brandlsetnosy: + georg.brandl
messages: + msg199048
2013-10-06 08:24:37berker.peksagsetstatus: open -> closed
resolution: fixed
messages: + msg199044

stage: patch review -> resolved
2013-09-18 20:17:50berker.peksagsetversions: + Python 3.4
nosy: + ezio.melotti, berker.peksag

messages: + msg198033

stage: patch review
2013-08-21 06:33:12bikosetnosy: + biko
2013-08-21 06:29:34bikosetfiles: + doc_fix.patch
keywords: + patch
2013-08-20 18:58:24purplezephyrcreate