Skip to content

Restructure Argument Clinic CLI #107467

Closed
Closed
@erlend-aasland

Description

@erlend-aasland

Suggesting to ...:

  • make the clinic tool a well-behaved command-line citizen; write to stderr, not stdout, on error (partly depends on Rework 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 errors Used ArgumentParser.error instead.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions