MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / parse_args

Function parse_args

tools/export_design_template.py:211–222  ·  view source on GitHub ↗
(argv: Sequence[str] | None = None)

Source from the content-addressed store, hash-verified

209
210
211def parse_args(argv: Sequence[str] | None = None) -> argparse.Namespace:
212 parser = argparse.ArgumentParser(description="Export design_0.4.0 YAML templates from config schemas")
213 parser.add_argument("--output", type=Path, required=True, help="Primary output YAML path")
214 parser.add_argument("--version", type=str, default=None, help="Version string to pin in the template")
215 parser.add_argument(
216 "--mirror",
217 type=Path,
218 nargs="*",
219 default=(),
220 help="Optional additional paths that should receive the same generated document",
221 )
222 return parser.parse_args(argv)
223
224
225def main(argv: Sequence[str] | None = None) -> int:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected