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 v+python
Recipients monkeyman79, paul.j3, r.david.murray, v+python
Date 2021-01-26.19:59:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611691190.53.0.2672200945.issue42973@roundup.psfhosted.org>
In-reply-to
Content
Paul said:
I haven't had a chance to study your longer posts, but it seems to me that the AddFruitAction example could just as well be implemented with 

    parser.add_argument('--color', nargs='*', action='append')

with post parsing processing to create the 'fruits' dicts from the appended lists.  


That was also my first reaction, Paul, when I read Tadek's proposal. But I quickly realized that particularly with the feature of "capture and reset to default" that the number of instances of a particular optional and the number of positionals do not always match, and there is no way to correlate them later, even if they are all captured and saved.
History
Date User Action Args
2021-01-26 19:59:50v+pythonsetrecipients: + v+python, r.david.murray, paul.j3, monkeyman79
2021-01-26 19:59:50v+pythonsetmessageid: <1611691190.53.0.2672200945.issue42973@roundup.psfhosted.org>
2021-01-26 19:59:50v+pythonlinkissue42973 messages
2021-01-26 19:59:50v+pythoncreate