[issue23378] argparse.add_argument action parameter should allow value extend

Wolfgang Maier report at bugs.python.org
Sun Mar 22 22:19:46 CET 2015


Wolfgang Maier added the comment:

> - I haven't seen other requests for it

For the record, an Extend custom action class is one of very few such classes I have ever written for argparse for exactly the OP's usecase, i.e., it is useful for any parser that should accept the same option multiple times, while accepting multiple arguments each time.
It *is* very simple to implement (and that's why I never asked for it as a feature), but only once you've understood custom action classes, which are not exactly for beginners.
All in all, I'm +1 on the request.

----------
nosy: +wolma

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23378>
_______________________________________


More information about the Python-bugs-list mailing list