Skip to content
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

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

Merged
merged 2 commits into from
Jun 28, 2024

Commits on Jun 28, 2024

  1. [3.13] pythongh-121018: Fix more cases of exiting in argparse when ex…

    …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 <[email protected]>
    serhiy-storchaka committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    4921ac8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89a39b6 View commit details
    Browse the repository at this point in the history