-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-113008: Correct argparse usage output for required, mutually exclusive groups #113085
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
Conversation
…in a mutually exclusive group
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @paytonward6. LGTM.
There are some conflicts. Please merge the |
Thank you for your contribution @paytonward6. |
Thanks for the help @serhiy-storchaka, I appreciate it |
Prior to fix, a mutually exclusive group that contained a positional would not be printed properly when the positional is not defined first. Instead, it would completely ignore the mutual exclusiveness in the usage output.
For example:
would have a usage line of:
while
would have a usage line of: