Message385733
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. |
|
Date |
User |
Action |
Args |
2021-01-26 19:59:50 | v+python | set | recipients:
+ v+python, r.david.murray, paul.j3, monkeyman79 |
2021-01-26 19:59:50 | v+python | set | messageid: <1611691190.53.0.2672200945.issue42973@roundup.psfhosted.org> |
2021-01-26 19:59:50 | v+python | link | issue42973 messages |
2021-01-26 19:59:50 | v+python | create | |
|