Tadek Kijkowski <tkijkow...@gmail.com> added the comment:

Paul,

> The basic logic of argparse is to accept optionals in any order, and 
> positionals in strict positional order.  'nargs' allows us to pair any number 
> of strings with each optional's flag.

I started this issue because that was insufficient for my project.

> I wonder if adding a new nargs, such as '**' would be better than than the 
> new parameter 'greedy_star=True'.

Yeah, I considered that earlier, but I thought that would be too much effort to 
review all the places where it would have to be treated as equal to '*'. But 
now I agree with you, I'll try to change that.

----------

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

Reply via email to