The Wayback Machine - https://web.archive.org/web/20250626102935/https://github.com/python/cpython/pull/95490
Skip to content

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

Closed
wants to merge 6 commits into from

Conversation

PurityLake
Copy link
Contributor

@PurityLake PurityLake commented Jul 31, 2022

Relates to #95377

Added documentation to make it clear that required parameter requires dest parameter inf argparse.add_subparser

@bedevere-bot bedevere-bot added awaiting review docs Documentation in the Doc dir labels Jul 31, 2022
@@ -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
Copy link
Member

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’?

Copy link
Contributor Author

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

Copy link

@cougargt cougargt left a 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.

@PurityLake PurityLake changed the title gh-95377: Editted docs for argparse.add._subparser gh-95377: Editted docs for argparse.add_subparser Feb 25, 2023
@PurityLake PurityLake closed this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting core review docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants