MCPcopy Create free account
hub / github.com/python/cpython / main

Function main

Tools/clinic/libclinic/cli.py:222–231  ·  view source on GitHub ↗
(argv: list[str] | None = None)

Source from the content-addressed store, hash-verified

220
221
222def main(argv: list[str] | None = None) -> NoReturn:
223 parser = create_cli()
224 args = parser.parse_args(argv)
225 try:
226 run_clinic(parser, args)
227 except ClinicError as exc:
228 sys.stderr.write(exc.report())
229 sys.exit(1)
230 else:
231 sys.exit(0)

Callers 1

clinic.pyFile · 0.90

Calls 6

create_cliFunction · 0.85
run_clinicFunction · 0.85
parse_argsMethod · 0.45
writeMethod · 0.45
reportMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…