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 rhettinger
Recipients monkeyman79, paul.j3, r.david.murray, rhettinger, v+python
Date 2021-01-28.05:10:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611810626.64.0.502149865276.issue43046@roundup.psfhosted.org>
In-reply-to
Content
> capture mutual relationship between command line arguments for more
> advanced parsers, where order of command line arguments is meaningful

I don't think this is a pattern we should encourage.  It doesn't seem to arise often and it makes the API much more complex for end users.

Also, I'm concerned that adding more action classes will make argparse harder to learn for the average user.  Already, the module suffers from sprawl and has unexpected interactions between the components.  The docs and tutorial are voluminous and hard to digest in a single sitting.

ISTM the scope of argparse was never intended to capture all possible patterns for command line argument parsing.  Instead, it aimed at to address the common cases.
History
Date User Action Args
2021-01-28 05:10:26rhettingersetrecipients: + rhettinger, v+python, r.david.murray, paul.j3, monkeyman79
2021-01-28 05:10:26rhettingersetmessageid: <1611810626.64.0.502149865276.issue43046@roundup.psfhosted.org>
2021-01-28 05:10:26rhettingerlinkissue43046 messages
2021-01-28 05:10:25rhettingercreate