MCPcopy Create free account
hub / github.com/codename-co/stack / flag

Function flag

packages/scripts/maintenance/check-versions.ts:35–35  ·  view source on GitHub ↗
(n: string)

Source from the content-addressed store, hash-verified

33
34const argv = process.argv.slice(2);
35const flag = (n: string) => argv.includes(`--${n}`);
36const values = (n: string) =>
37 argv.flatMap((a, i) => (a === `--${n}` ? [argv[i + 1]] : []));
38

Callers 1

check-versions.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected