MCPcopy Index your code
hub / github.com/cloudflare/capnweb / parseMode

Function parseMode

packages/capnweb-validate/src/cli.ts:37–43  ·  view source on GitHub ↗
(arg: string, value: string | undefined)

Source from the content-addressed store, hash-verified

35};
36
37function parseMode(arg: string, value: string | undefined): ValidationMode {
38 if (value === undefined) throw new Error(`${arg} requires a value.`);
39 if (value !== "throw" && value !== "warn") {
40 throw new Error(`${arg} must be one of throw, warn (got ${value}).`);
41 }
42 return value;
43}
44
45function parseBuildArgs(args: string[]): BuildArgs {
46 let parsed: BuildArgs = {};

Callers 1

parseBuildArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…