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

2019-05-21 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2019-05-21 Thread miss-islington
miss-islington added the comment: New changeset aa32a7e1116f7aaaef9fec453db910e90ab7b101 by Miss Islington (bot) (Batuhan Taşkaya) in branch 'master': bpo-23378: Add an extend action to argparse (GH-13305) https://github.com/python/cpython/commit/aa32a7e1116f7aaaef9fec453db910e90ab7b101

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

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: I've felt the need for this myself. -- nosy: +gvanrossum ___ Python tracker ___ ___

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

2019-05-14 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2019-05-13 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +13215 stage: needs patch -> patch review ___ Python tracker ___ ___

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

2015-03-23 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: - needs patch versions: -Python 3.4, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23378 ___

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

2015-03-22 Thread paul j3
paul j3 added the comment: My opinion is that this is an unnecessary addition. Reasons: - it is easy to add as a custom action class - I haven't seen other requests for it - the append retains information about the argument strings that extend looses - it is easy flatten the appended

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

2015-03-22 Thread Wolfgang Maier
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

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

2015-02-02 Thread the mulhern
New submission from the mulhern: As well as the append action it would be convenient for there to be an extend action. This is kind of useful to allow something like: parser.add_argument(--foo, action=extend, nargs=+, type=str) given parser.parse_args(--foo f1 --foo f2 f3 f4.split()) to