[issue18790] incorrect text in argparse add_help example
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@python components: Documentation messages: 195710 nosy: docs@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@bugs.python.org> <http://bugs.python.org/issue18790> _______________________________________
Changes by Michael Bikovitsky <moshe.biko@gmail.com>: ---------- keywords: +patch Added file: http://bugs.python.org/file31393/doc_fix.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18790> _______________________________________
Changes by Michael Bikovitsky <moshe.biko@gmail.com>: ---------- nosy: +Michael.Bikovitsky _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18790> _______________________________________
Berker Peksag added the comment: This was reported a couple of times before on the docs list. - https://mail.python.org/pipermail/docs/2013-April/015145.html - https://mail.python.org/pipermail/docs/2013-June/015016.html - https://mail.python.org/pipermail/docs/2013-September/015505.html ---------- nosy: +berker.peksag, ezio.melotti stage: -> patch review versions: +Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18790> _______________________________________
Berker Peksag added the comment: This is fixed by changesets: - http://hg.python.org/cpython/rev/e2456381fa14 (3.4) - http://hg.python.org/cpython/rev/ee394a61dade (3.3) - http://hg.python.org/cpython/rev/c5f57a7fd4d8 (2.7) ---------- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18790> _______________________________________
Georg Brandl added the comment: Thanks for closing this! ---------- nosy: +georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18790> _______________________________________
participants (4)
-
Berker Peksag
-
Georg Brandl
-
Michael Bikovitsky
-
purplezephyr