INNER CODE UNIT · Python

_build_parser

faridrashidi/cnsplots · src/cnsplots/_cli.py:320

def _build_parser() -> argparse.ArgumentParser:
    parser = argparse.ArgumentParser(prog="cnsplots")
    commands = parser.add_subparsers(dest="command", required=True)
    skill = commands.add_parser("skill", help="manage the cnsplots agent skill")
    skill_commands = skill.add_subparsers(dest="skill_command", required=True)
    for command, description in (
        ("install", "install the agent skill"),
        (
            "status",
            "show read-only installation status (exit 0 even if missing or changed)",
        ),
        (
            "uninstall",
            "remove unchanged managed files; retain modified and unrelated files "
            "(missing installations succeed)",
        ),
    ):
        subparser = skill_commands.add_parser(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…