MCPcopy Create free account
hub / github.com/1jehuang/jcode / parse_args

Function parse_args

scripts/profile_single_spawn.py:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def parse_args() -> argparse.Namespace:
18 parser = argparse.ArgumentParser(description="Profile a single resumed jcode spawn")
19 parser.add_argument("--binary", default="./target/selfdev/jcode")
20 parser.add_argument("--timeout", type=float, default=20.0)
21 parser.add_argument("--cwd", default=os.getcwd())
22 parser.add_argument("--json", action="store_true", help="Emit JSON summary")
23 return parser.parse_args()
24
25
26def wait_for_socket(path: Path, timeout_s: float = 10.0) -> None:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected