MCPcopy
hub / github.com/pytest-dev/pytest / print_usage_error

Function print_usage_error

src/_pytest/config/__init__.py:169–172  ·  view source on GitHub ↗
(e: UsageError, file: TextIO)

Source from the content-addressed store, hash-verified

167
168
169def print_usage_error(e: UsageError, file: TextIO) -> None:
170 tw = TerminalWriter(file)
171 for msg in e.args:
172 tw.line(f"ERROR: {msg}\n", red=True)
173
174
175def _get_prog_name(argv: Sequence[str]) -> str:

Callers 1

_mainFunction · 0.85

Calls 2

lineMethod · 0.95
TerminalWriterClass · 0.90

Tested by

no test coverage detected