Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Suggesting to ...:
- make the clinic tool a well-behaved command-line citizen; write to
stderr, notstdout, on error (partly depends onRework Argument Clinic error handling #107468) - put the whole CLI in
main, making it easier to mock the tool in the test suite (currently we use subprocesses, which is slow, and requires several lines of boiler-plate test setup code) Introduce CLIError and use it for usage errorsUsedArgumentParser.errorinstead.