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

Method make_parser

src/click/core.py:1178–1183  ·  view source on GitHub ↗

Creates the underlying option parser for this command.

(self, ctx: Context)

Source from the content-addressed store, hash-verified

1176 return self._help_option
1177
1178 def make_parser(self, ctx: Context) -> _OptionParser:
1179 """Creates the underlying option parser for this command."""
1180 parser = _OptionParser(ctx)
1181 for param in self.get_params(ctx):
1182 param.add_to_parser(parser, ctx)
1183 return parser
1184
1185 def get_help(self, ctx: Context) -> str:
1186 """Formats the help into a string and returns it.

Callers 1

parse_argsMethod · 0.95

Calls 3

get_paramsMethod · 0.95
_OptionParserClass · 0.85
add_to_parserMethod · 0.45

Tested by

no test coverage detected