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 paul.j3
Recipients acooke, paul.j3
Date 2021-11-02.18:42:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635878577.79.0.0854696242605.issue45690@roundup.psfhosted.org>
In-reply-to
Content
https://bugs.python.org/issue29553
Argparser does not display closing parentheses in nested mutex groups

supposedly fixed the parentheses for nested groups.  You can read its discussion and patches to see why it does not handle your case.

I don't see any examples have required groups.  [] is used for un-required, () for required.  This patch did not change how the usage was generated.  It just refined how excess [()] were removed.

Proper handling of groups requires a major rewrite of the usage formatter.
History
Date User Action Args
2021-11-02 18:42:58paul.j3setrecipients: + paul.j3, acooke
2021-11-02 18:42:57paul.j3setmessageid: <1635878577.79.0.0854696242605.issue45690@roundup.psfhosted.org>
2021-11-02 18:42:57paul.j3linkissue45690 messages
2021-11-02 18:42:57paul.j3create