(description: str)
| 39 | |
| 40 | |
| 41 | def base_parser(description: str) -> argparse.ArgumentParser: |
| 42 | parser = argparse.ArgumentParser(description=description) |
| 43 | parser.add_argument("--input", help="Primary input path, JSON artifact, or identifier.") |
| 44 | parser.add_argument("--output", help="Output path for JSON or Markdown.") |
| 45 | parser.add_argument("--paper-id", help="Canonical paper id if already known.") |
| 46 | return parser |
| 47 | |
| 48 | |
| 49 | def ensure_parent(path: str | Path) -> None: |