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 nejucomo
Recipients docs@python, nejucomo
Date 2012-07-05.22:41:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341528073.03.0.435446433545.issue15258@psf.upfronthosting.co.za>
In-reply-to
Content
It was not obvious from the documentation on argparse how to emulate the optparse.OptionParser.allow_interspersed_args feature.

Please add something like the following to the section titled "Upgrading optparse code" (see: http://docs.python.org/library/argparse.html#upgrading-optparse-code )

"""
* If the optparse code sets allow_interspersed_args to False, then add an argparse positional argument with nargs=argparse.REMAINDER
"""
History
Date User Action Args
2012-07-05 22:41:13nejucomosetrecipients: + nejucomo, docs@python
2012-07-05 22:41:13nejucomosetmessageid: <1341528073.03.0.435446433545.issue15258@psf.upfronthosting.co.za>
2012-07-05 22:41:12nejucomolinkissue15258 messages
2012-07-05 22:41:12nejucomocreate