[issue16988] argparse: PARSER option for nargs not documented

Robert Leenders report at bugs.python.org
Thu Jan 17 22:30:15 CET 2013


New submission from Robert Leenders:

There is a value for nargs: PARSER="A..." which is not documented at http://docs.python.org/3.4/library/argparse.html#nargs. The docstring for the action class in argparse.py also does not list PARSER as a valid value for nargs.

In argparse.py on line 2199-2201 it says:
# Allow one argument followed by any number of options or arguments
elif nargs == PARSER:
    nargs_pattern = '(-*A[-AO]*)'

This is the only hint that I could find on what it is about.

----------
assignee: docs at python
components: Documentation
messages: 180155
nosy: ReDAeR, bethard, docs at python
priority: normal
severity: normal
status: open
title: argparse: PARSER option for nargs not documented
type: enhancement
versions: Python 3.4

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


More information about the Python-bugs-list mailing list