homepage

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 <1323955710.42.0.753468095058.issue13605@psf.upfronthosting.co.za>
In-reply-to
Content
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:
http://stackoverflow.com/questions/5826881/how-to-use-argparse-to-collect-arguments-for-a-separate-command-line-without
http://code.google.com/p/argparse/issues/detail?id=52
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.
History
Date User Action Args
2011年12月15日 13:28:30bethardsetrecipients: + bethard, docs@python
2011年12月15日 13:28:30bethardsetmessageid: <1323955710.42.0.753468095058.issue13605@psf.upfronthosting.co.za>
2011年12月15日 13:28:29bethardlinkissue13605 messages
2011年12月15日 13:28:29bethardcreate

AltStyle によって変換されたページ (->オリジナル) /