Content-Length: 278593 | pFad | https://github.com/python/cpython/pull/121129

42 [3.12] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False (GH-121056) by serhiy-storchaka · Pull Request #121129 · python/cpython · GitHub
Skip to content

[3.12] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False (GH-121056)#121129

Merged
serhiy-storchaka merged 1 commit intopython:3.12from
serhiy-storchaka:backport-81a654a-3.12
Jun 28, 2024
Merged

[3.12] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False (GH-121056)#121129
serhiy-storchaka merged 1 commit intopython:3.12from
serhiy-storchaka:backport-81a654a-3.12

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jun 28, 2024

  • parse_intermixed_args() now raises ArgumentError instead of calling error() if exit_on_error is false.
  • Internal code now always raises ArgumentError instead of calling error(). It is then caught at the higher level and error() is called if exit_on_error is true.

(cherry picked from commit 81a654a)

…it_on_error=False (pythonGH-121056)

* parse_intermixed_args() now raises ArgumentError instead of calling
  error() if exit_on_error is false.
* Internal code now always raises ArgumentError instead of calling
  error(). It is then caught at the higher level and error() is called if
  exit_on_error is true.
(cherry picked from commit 81a654a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/121129

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy