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

Function show_help

src/click/decorators.py:560–564  ·  view source on GitHub ↗

Callback that print the help page on ``<stdout>`` and exits.

(ctx: Context, param: Parameter, value: bool)

Source from the content-addressed store, hash-verified

558 """
559
560 def show_help(ctx: Context, param: Parameter, value: bool) -> None:
561 """Callback that print the help page on ``<stdout>`` and exits."""
562 if value and not ctx.resilient_parsing:
563 echo(ctx.get_help(), color=ctx.color)
564 ctx.exit()
565
566 if not param_decls:
567 param_decls = ("--help",)

Callers

nothing calls this directly

Calls 3

exitMethod · 0.80
echoFunction · 0.70
get_helpMethod · 0.45

Tested by

no test coverage detected