MCPcopy
hub / github.com/chidiwilliams/buzz / parse_command_line

Function parse_command_line

buzz/cli.py:39–46  ·  view source on GitHub ↗
(app: Application)

Source from the content-addressed store, hash-verified

37
38
39def parse_command_line(app: Application):
40 parser = QCommandLineParser()
41 try:
42 parse(app, parser)
43 except CommandLineError as exc:
44 print(f"Error: {str(exc)}\n", file=sys.stderr)
45 print(parser.helpText())
46 sys.exit(1)
47
48def is_url(path: str) -> bool:
49 parsed = urllib.parse.urlparse(path)

Callers 2

mainFunction · 0.90
test_cliMethod · 0.90

Calls 1

parseFunction · 0.85

Tested by 1

test_cliMethod · 0.72