MCPcopy
hub / github.com/mitmproxy/mitmproxy / dump

Method dump

mitmproxy/command.py:294–301  ·  view source on GitHub ↗
(self, out=sys.stdout)

Source from the content-addressed store, hash-verified

292 return self.call_strings(command_name, args)
293
294 def dump(self, out=sys.stdout) -> None:
295 cmds = list(self.commands.values())
296 cmds.sort(key=lambda x: x.signature_help())
297 for c in cmds:
298 for hl in (c.help or "").splitlines():
299 print("# " + hl, file=out)
300 print(c.signature_help(), file=out)
301 print(file=out)
302
303
304def parsearg(manager: CommandManager, spec: str, argtype: type) -> Any:

Callers 1

test_simpleFunction · 0.95

Calls 3

valuesMethod · 0.80
sortMethod · 0.80
signature_helpMethod · 0.80

Tested by 1

test_simpleFunction · 0.76