MCPcopy
hub / github.com/pallets/click / show

Method show

src/click/exceptions.py:57–65  ·  src/click/exceptions.py::ClickException.show
(self, file: t.IO[t.Any] | None = None)

Source from the content-addressed store, hash-verified

55 return self.message
56
57 def show(self, file: t.IO[t.Any] | None = None) -> None:
58 if file is None:
59 file = get_text_stderr()
60
61 echo(
62 _(class="st">"Error: {message}").format(message=self.format_message()),
63 file=file,
64 color=self.show_color,
65 )
66
67
68class UsageError(ClickException):

Callers

nothing calls this directly

Calls 3

format_messageMethod · 0.95
get_text_stderrFunction · 0.85
echoFunction · 0.70

Tested by

no test coverage detected