MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / parse_agent_arg

Function parse_agent_arg

codeclash/arenas/scml/runtime/run_scml.py:523–531  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

521
522
523def 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
534def main() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected