(value: str)
| 521 | |
| 522 | |
| 523 | def parse_agent_arg(value: str) -> tuple[str, str]: |
| 524 | if "=" not in value: |
| 525 | raise argparse.ArgumentTypeError("--agent values must be NAME=/path/to/scml_agent.py") |
| 526 | name, path = value.split("=", 1) |
| 527 | if not name: |
| 528 | raise argparse.ArgumentTypeError("agent name cannot be empty") |
| 529 | if not Path(path).exists(): |
| 530 | raise argparse.ArgumentTypeError(f"agent path does not exist: {path}") |
| 531 | return name, path |
| 532 | |
| 533 | |
| 534 | def main() -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected