| 209 | |
| 210 | |
| 211 | def 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 | |
| 225 | def main(argv: Sequence[str] | None = None) -> int: |