FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

/ cpython Public

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

Merged
serhiy-storchaka merged 2 commits into
python:3.13from
serhiy-storchaka:backport-81a654a-3.13
Jun 28, 2024
Merged

[3.13] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False (GH-121056)#121128
serhiy-storchaka merged 2 commits into
python:3.13from
serhiy-storchaka:backport-81a654a-3.13

Conversation

serhiy-storchaka commented Jun 28, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member
  • 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>
serhiy-storchaka merged commit 99de20d into python:3.13 Jun 28, 2024
serhiy-storchaka deleted the backport-81a654a-3.13 branch October 21, 2024 13:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL