8000 gh-85935: Check for nargs=0 for positional arguments in argparse by serhiy-storchaka · Pull Request #124839 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-85935: Check for nargs=0 for positional arguments in argparse #124839

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

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Misc/NEWS.d/next/Library/2024-10-01-13-11-53.gh-issue-85935.CT…
…wJUy.rst

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
  • Loading branch information
serhiy-storchaka and savannahostrowski authored Oct 11, 2024
commit b27771b65365031d0960f779e04543f614f81f47
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:meth:`argparse.ArgumentParser.add_argument` now raises exception if
:ref:`action` that does not consume arguments (like 'store_const' or
'strore_true') or explicit ``nargs=0`` are specified for positional
:meth:`argparse.ArgumentParser.add_argument` now raises an exception if
an :ref:`action` that does not consume arguments (like 'store_const' or
'store_true') or explicit ``nargs=0`` are specified for positional
arguments.
Loading
0