Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-83648: Support deprecation of options, arguments and subcommands in argparse#114086

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedJan 15, 2024
edited by bedevere-appbot
Loading

It is an alternative to#18208. Simpler and more complex at the same time.

On one hand, it only supports one argument:deprecated. On other hand, it supports deprecation of options (in all forms), positional arguments, and subcommands (with aliases). Warnings are localized and printed to stderr.


📚 Documentation preview 📚:https://cpython-previews--114086.org.readthedocs.build/

@hugovkhugovk changed the titlegh-18208: Support deprecation of options, arguments and subcommands in argparsegh-83648: Support deprecation of options, arguments and subcommands in argparseJan 15, 2024
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Copy link
MemberAuthor

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for your review@hugovk.

hugovk reacted with thumbs up emoji
@rhettingerrhettinger removed their request for reviewJanuary 16, 2024 04:46
Copy link
Member

@hugovkhugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍

@serhiy-storchakaserhiy-storchaka merged commitbb57ffd intopython:mainFeb 5, 2024
@serhiy-storchakaserhiy-storchaka deleted the argparse-deprecated branchFebruary 5, 2024 22:41
fsc-eriker pushed a commit to fsc-eriker/cpython that referenced this pull requestFeb 14, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hugovkhugovkhugovk approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@serhiy-storchaka@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp