-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-95377: Editted docs for argparse.add_subparser #95490
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
3bb4bf4
to
e9f7a26
Compare
e9f7a26
to
ce36799
Compare
Doc/library/argparse.rst
Outdated
@@ -1745,10 +1745,12 @@ Sub-commands | |||
encountered at the command line | |||
|
|||
* dest_ - name of the attribute under which sub-command name will be | |||
stored; by default ``None`` and no value is stored | |||
stored; by default ``None`` and no value is stored. Required if | |||
required_ has been passed |
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.
‘Required if required’ doesn’t read well.
maybe just remove this addition. Is it not enough to document this under ‘required’?
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.
Apologies for the radio silence, I have removed the line as requested, as yes it isn't needed
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.
Minor revisions to argparse inline comments.
Relates to #95377
Added documentation to make it clear that
required
parameter requiresdest
parameter infargparse.add_subparser