Parse CLI arguments.
()
| 285 | |
| 286 | |
| 287 | def parse_args() -> argparse.Namespace: |
| 288 | """Parse CLI arguments.""" |
| 289 | parser = argparse.ArgumentParser( |
| 290 | description="Reset the PaperFlow database while preserving role-specific cold-start profiles.", |
| 291 | ) |
| 292 | parser.add_argument( |
| 293 | "--action", |
| 294 | choices=("full_reset", "benchmark_reset", "reset_profiles", "clear_logs", "clear_papers", "clear_tasks"), |
| 295 | default="full_reset", |
| 296 | help="Cleanup action to perform.", |
| 297 | ) |
| 298 | parser.add_argument("--roles", nargs="+", help="Only seed the specified role names.") |
| 299 | parser.add_argument("--yes", action="store_true", help="Skip confirmation prompt.") |
| 300 | return parser.parse_args() |
| 301 | |
| 302 | |
| 303 | def main() -> int: |