| 338 | |
| 339 | |
| 340 | def 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 | |
| 363 | def main() -> int: |