[docs] [issue16988] argparse: PARSER option for nargs not documented

Jeff Knupp report at bugs.python.org
Fri Jan 18 16:11:01 CET 2013


Jeff Knupp added the comment:

This is not a bug.

The 'PARSER' nargs choice is an implementation detail as a way to handle subparsers. The parser needs to know that the first value should be handled, but everything that follows will be handled by the subparser.

By using a subparser, you're effectively using 'PARSER', but it wouldn't make sense to allow 'PARSER' to be set directly as it only makes sense when used in conjunction with a subparser.

----------
nosy: +jeffknupp

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


More information about the docs mailing list