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 paul.j3
Recipients bethard, chris.jerdonek, gfxmonk, leonard.gerard, martin.panter, paul.j3, tshepang, waltermundt
Date 2014-09-03.20:45:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409777133.38.0.891338047077.issue15112@psf.upfronthosting.co.za>
In-reply-to
Content
http://bugs.python.org/issue14191
'argparse doesn't allow optionals within positionals'

implements a 'parse_intermixed_args()' method, which parses all of the optionals with one pass, followed by a second pass that handles the positionals.  It does this by temporarily deactivating the positionals for the first pass.  It emulates the optparse behavior (with the added ability to parse positionals).

This is too big of a change to ever become the default behavior for argparse.
History
Date User Action Args
2014-09-03 20:45:33paul.j3setrecipients: + paul.j3, bethard, gfxmonk, chris.jerdonek, tshepang, martin.panter, waltermundt, leonard.gerard
2014-09-03 20:45:33paul.j3setmessageid: <1409777133.38.0.891338047077.issue15112@psf.upfronthosting.co.za>
2014-09-03 20:45:33paul.j3linkissue15112 messages
2014-09-03 20:45:33paul.j3create