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 Clint Olsen
Recipients Christophe.Guillon, Clint Olsen, abacabadabacaba, amcnabb, andersk, bethard, cben, danielsh, davidben, drm, eric.araujo, eric.smith, gdb, gfxmonk, martin.panter, memeplex, nelhage, paul.j3, r.david.murray, skilletaudio, spaceone
Date 2016-09-14.20:49:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473886148.17.0.180815778083.issue9334@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure if this is applicable to this bug, but one feature missing from argparse is the ability to snarf arbitrary options up to a terminating '--'. The purpose of this is to collect arguments for potential children you may spawn. An example:

--subscript_args --foo --bar --baz -- <other args>

So, if you ran args = parser.parse_args()

args.subscript_args = [ '--foo', '--bar', '--baz' ]

Right now I have NO way of enabling this w/o writing my own argument parser, and I think it's bizarre that argparse can't do something like this.

And no, I don't want to pass a singly-quoted string to this so I don't have to manually split() the arguments which may or may not match what /bin/sh does.

Does this deserve it's own enhancement request?
History
Date User Action Args
2016-09-14 20:49:08Clint Olsensetrecipients: + Clint Olsen, cben, amcnabb, bethard, eric.smith, eric.araujo, r.david.murray, memeplex, gfxmonk, andersk, abacabadabacaba, gdb, nelhage, drm, davidben, martin.panter, paul.j3, skilletaudio, Christophe.Guillon, danielsh, spaceone
2016-09-14 20:49:08Clint Olsensetmessageid: <1473886148.17.0.180815778083.issue9334@psf.upfronthosting.co.za>
2016-09-14 20:49:08Clint Olsenlinkissue9334 messages
2016-09-14 20:49:08Clint Olsencreate