MCPcopy Index your code
hub / github.com/httpie/cli / missing_subcommand

Function missing_subcommand

httpie/manager/cli.py:95–102  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

93
94
95def missing_subcommand(*args) -> str:
96 base = COMMANDS
97 for arg in args:
98 base = base[arg]
99
100 assert isinstance(base, dict)
101 subcommands = ', '.join(map(repr, base.keys()))
102 return f'Please specify one of these: {subcommands}'
103
104
105def generate_subparsers(root, parent_parser, definitions, spec):

Callers 4

core.pyFile · 0.90
dispatch_cli_taskFunction · 0.90
cli_sessionsFunction · 0.90
runMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected