MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / parse_args

Function parse_args

scripts/baseline_workflow_metrics.py:340–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338
339
340def parse_args() -> argparse.Namespace:
341 parser = argparse.ArgumentParser(description=(__doc__ or "").splitlines()[0])
342 parser.add_argument(
343 "--days",
344 type=int,
345 default=30,
346 help="Look-back window in days (default: 30)",
347 )
348 parser.add_argument(
349 "--out",
350 type=pathlib.Path,
351 default=pathlib.Path("architecture/plans/OS-49-baseline.json"),
352 help="Where to write the JSON report (default: architecture/plans/OS-49-baseline.json)",
353 )
354 parser.add_argument(
355 "--md",
356 type=pathlib.Path,
357 default=pathlib.Path("architecture/plans/OS-49-baseline.md"),
358 help="Where to write the Markdown report (default: architecture/plans/OS-49-baseline.md)",
359 )
360 return parser.parse_args()
361
362
363def main() -> int:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected