MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / parse_arguments

Function parse_arguments

scripts/ci/select-release-candidates.py:99–109  ·  view source on GitHub ↗
(argv: Sequence[str])

Source from the content-addressed store, hash-verified

97
98
99def parse_arguments(argv: Sequence[str]) -> argparse.Namespace:
100 parser = argparse.ArgumentParser(
101 description="Select one VT-approved candidate per canonical target tuple."
102 )
103 parser.add_argument("--candidates", required=True, type=pathlib.Path)
104 parser.add_argument("--objects-dir", required=True, type=pathlib.Path)
105 parser.add_argument("--out-dir", required=True, type=pathlib.Path)
106 policy = parser.add_mutually_exclusive_group(required=True)
107 policy.add_argument("--results", type=pathlib.Path)
108 policy.add_argument("--default-stripped", action="store_true")
109 return parser.parse_args(argv[1:])
110
111
112def regular_status(path: pathlib.Path, *, ceiling: int, label: str) -> os.stat_result:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected