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

Method parse_args

tests/test_commands.py:157–163  ·  view source on GitHub ↗
(self, ctx, args)

Source from the content-addressed store, hash-verified

155 self.callback = callback
156
157 def parse_args(self, ctx, args):
158 try:
159 opts, args = parser.parse_args(args)
160 except Exception as e:
161 ctx.fail(str(e))
162 ctx.args = args
163 ctx.params = vars(opts)
164
165 def get_usage(self, ctx):
166 return self.parser.get_usage()

Calls 1

failMethod · 0.45

Tested by

no test coverage detected