MCPcopy Create free account
hub / github.com/modem-dev/hunk / readArgValue

Function readArgValue

scripts/run-release-benchmark.ts:19–25  ·  view source on GitHub ↗
(args: string[], index: number)

Source from the content-addressed store, hash-verified

17const repoRoot = path.resolve(import.meta.dir, "..");
18
19function readArgValue(args: string[], index: number) {
20 const value = args[index + 1];
21 if (!value) {
22 throw new Error(`Missing value for ${args[index]}`);
23 }
24 return value;
25}
26
27/** Parse release benchmark CLI options while preserving explicit output paths. */
28export async function parseRunReleaseBenchmarkArgs(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected