Skip to content

add_mutually_exclusive_group() suggests that you cannot add help groups #94787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
scottamain opened this issue Jul 12, 2022 · 0 comments
Closed
Labels
docs Documentation in the Doc dir

Comments

@scottamain
Copy link
Contributor

https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_mutually_exclusive_group

The final note suggests that you cannot add mutually-exclusive groups to a labeled group for organized help output. This is untrue, because you can add a mutually exclusive group to an existing group that has a title/description. I have prepared a CL to improve this documentation...

@scottamain scottamain added the docs Documentation in the Doc dir label Jul 12, 2022
scottamain added a commit to scottamain/cpython that referenced this issue Jul 13, 2022
It's not obvious that a group can be added to a group, and this is important when trying to organize your help output.

(New main branch PR originally from PR python#94788)
iritkatriel pushed a commit that referenced this issue Sep 18, 2022
@iritkatriel iritkatriel moved this to Doc issues in Argparse issues Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
Status: Doc issues
Development

No branches or pull requests

2 participants