-
-
Notifications
You must be signed in to change notification settings - Fork 34k
gh-87212: argparse: capturing actions #24357
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
base: main
Are you sure you want to change the base?
Conversation
Added set of 4 new action classes to argparse for capturing preceding arguments. Docs and tests updated.
Fixed whitespaces in tests
Updated ArgumentParser.add_argument signature in documentation
|
This PR is stale because it has been open for 30 days with no activity. |
MaxwellDupre
left a comment
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.
Ran 1728 tests in 3.090s
OK
Looks good.
|
This is, IMO, way too big of an addition for the default argparse module. It may be useful for the author and similar users, but I think it would be confusing to almost anyone else. It confused me, and I'm quite knowledgeable about the module. I recommend publishing it on its own on PYPI. |
Add set of 4 new action classes to argparse for capturing preceding arguments.