INNER CODE UNIT · Python
build_parser
candle-org/mindnlp · src/mindact/cli/main.py:40
def build_parser() -> argparse.ArgumentParser:
"""Build the public command-line parser."""
parser = argparse.ArgumentParser(
prog="mindact",
description="Train and evaluate embodied policies with reproducible experiment records.",
)
parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
subparsers = parser.add_subparsers(dest="command")
config_parser = subparsers.add_parser(
"config-check",
help="validate an experiment YAML file without starting a run",
)
config_parser.add_argument("path", help="path to an experiment YAML file")
subparsers.add_parser(
"doctor",
help="check core and optional integration availability",