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.

Author bethard
Recipients bethard, docs@python
Date 2011-12-15.13:28:29
SpamBayes Score 0.00011531897
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2011-12-15 13:28:30bethardsetrecipients: + bethard, docs@python
2011-12-15 13:28:30bethardsetmessageid: <>
2011-12-15 13:28:29bethardlinkissue13605 messages
2011-12-15 13:28:29bethardcreate