MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / base_parser

Function base_parser

scripts/common.py:41–46  ·  view source on GitHub ↗
(description: str)

Source from the content-addressed store, hash-verified

39
40
41def 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
49def ensure_parent(path: str | Path) -> None:

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected