MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / getArgValue

Function getArgValue

scripts/benchmark/regression.ts:849–853  ·  view source on GitHub ↗
(args: string[], flag: string)

Source from the content-addressed store, hash-verified

847}
848
849function getArgValue(args: string[], flag: string): string | undefined {
850 const idx = args.indexOf(flag);
851
852 return idx !== -1 && idx + 1 < args.length ? args[idx + 1] : undefined;
853}
854
855await main();

Callers 4

resolveAndValidateArgsFunction · 0.90
resolveArgsFunction · 0.90
resolveAndValidateArgsFunction · 0.90
resolveArgsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected