Clint Olsen added the comment:

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?

----------
nosy: +Clint Olsen

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9334>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to