MCPcopy
hub / github.com/sphinx-doc/sphinx / parse_arguments

Function parse_arguments

tests/test_command_line.py:94–96  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

92
93
94def parse_arguments(args: list[str]) -> dict[str, Any]:
95 parsed = vars(get_parser().parse_args(args))
96 return {k: v for k, v in parsed.items() if k not in DEFAULTS or v != DEFAULTS[k]}
97
98
99def test_build_main_parse_arguments_pos_first() -> None:

Calls 2

get_parserFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…