[New-bugs-announce] [issue13605] document argparse's nargs=REMAINDER
report at bugs.python.org
Thu Dec 15 14:28:30 CET 2011
New submission from Steven Bethard <steven.bethard at gmail.com>:
There is an undocumented value for add_argument's nargs parameter, REMAINDER, which can be used to consume all the remaining arguments. This is commonly useful for command line utilities that dispatch to other command line utilities.
Though undocumented, it has been used successfully by at least a few different people:
And I just received an email from yet another user who used it successfully.
So I think it's time to graduate this from a hidden feature to a real documented one.
assignee: docs at python
nosy: bethard, docs at python
stage: needs patch
title: document argparse's nargs=REMAINDER
versions: Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce