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

Method get_help

src/click/core.py:1185–1192  ·  view source on GitHub ↗

Formats the help into a string and returns it. Calls :meth:`format_help` internally.

(self, ctx: Context)

Source from the content-addressed store, hash-verified

1183 return parser
1184
1185 def get_help(self, ctx: Context) -> str:
1186 """Formats the help into a string and returns it.
1187
1188 Calls :meth:`format_help` internally.
1189 """
1190 formatter = ctx.make_formatter()
1191 self.format_help(ctx, formatter)
1192 return formatter.getvalue().rstrip("\n")
1193
1194 def get_short_help_str(self, limit: int = 45) -> str:
1195 """Gets short help for the command or makes it by shortening the

Callers

nothing calls this directly

Calls 3

format_helpMethod · 0.95
make_formatterMethod · 0.80
getvalueMethod · 0.80

Tested by

no test coverage detected