MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / parse_args

Function parse_args

scripts/clear_database.py:287–300  ·  view source on GitHub ↗

Parse CLI arguments.

()

Source from the content-addressed store, hash-verified

285
286
287def 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
303def main() -> int:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected