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

Function readArgValue

scripts/compare-release-benchmarks.ts:361–367  ·  view source on GitHub ↗
(args: string[], index: number)

Source from the content-addressed store, hash-verified

359}
360
361function readArgValue(args: string[], index: number) {
362 const value = args[index + 1];
363 if (!value) {
364 throw new Error(`Missing value for ${args[index]}`);
365 }
366 return value;
367}
368
369async function parseArgs(args: string[]): Promise<CompareOptions> {
370 const packageVersion = await readPackageVersion();

Callers 1

parseArgsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected