]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107467: Restructure Argument Clinic command-line interface (#107469)
authorErlend E. Aasland <erlend@python.org>
Tue, 1 Aug 2023 16:24:23 +0000 (18:24 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Aug 2023 16:24:23 +0000 (18:24 +0200)
commit49f238e78c36532bcbca7f9cd172703eb4df319b
tree263b85b1366a2dd2fbe5d7fbc05ae33ec5774742
parent557b05c7a5334de5da3dc94c108c0121f10b9191
gh-107467: Restructure Argument Clinic command-line interface (#107469)

- Use ArgumentParser.error() to handle CLI errors
- Put the entire CLI in main()
- Rework ClinicExternalTest to call main() instead of using subprocesses

Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
Lib/test/test_clinic.py
Misc/NEWS.d/next/Tools-Demos/2023-07-30-23-32-16.gh-issue-107467.5O9p3G.rst [new file with mode: 0644]
Tools/clinic/clinic.py