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.

classification
Title: argparse 15.4.5.1. Sub-commands documentation missing indentation
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: docs@python, ezio.melotti, paul.j3, python-dev
Priority: normal Keywords:

Created on 2013-01-12 04:00 by paul.j3, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg179766 - (view) Author: paul j3 (paul.j3) * (Python triager) Date: 2013-01-12 04:00
Argparse
15.4.5.1. Sub-commands

In the example:

>>> parser.parse_args(['--help'])
usage: PROG [-h] [--foo] {a,b} ...

positional arguments:
  {a,b}   sub-command help
a     a help
b     b help

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

The 'a help', 'b help' lines should be indented
msg179781 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-01-12 08:41
New changeset eae31f2b6f60 by Ezio Melotti in branch '2.7':
#16940: fix indentation in example.
http://hg.python.org/cpython/rev/eae31f2b6f60

New changeset 3d54723c9be6 by Ezio Melotti in branch '3.2':
#16940: fix indentation in example.
http://hg.python.org/cpython/rev/3d54723c9be6

New changeset b468f6c8eae5 by Ezio Melotti in branch '3.3':
#16940: merge with 3.2.
http://hg.python.org/cpython/rev/b468f6c8eae5

New changeset 6fe28afa6611 by Ezio Melotti in branch 'default':
#16940: merge with 3.3.
http://hg.python.org/cpython/rev/6fe28afa6611
msg179782 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-01-12 08:41
Fixed, thanks for the report!
History
Date User Action Args
2022-04-11 14:57:40adminsetgithub: 61144
2013-01-12 08:41:47ezio.melottisetstatus: open -> closed

type: enhancement
assignee: docs@python -> ezio.melotti
versions: + Python 3.2, Python 3.3, Python 3.4
nosy: + ezio.melotti

messages: + msg179782
resolution: fixed
stage: resolved
2013-01-12 08:41:04python-devsetnosy: + python-dev
messages: + msg179781
2013-01-12 04:00:57paul.j3create