MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / flag

Function flag

scripts/regression/gate.mjs:39–39  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

37
38const args = process.argv.slice(2);
39const flag = (name) => args.includes(name);
40const valueOf = (name) => (args.includes(name) ? args[args.indexOf(name) + 1] : undefined);
41if (!args[0] || args[0].startsWith('--')) {
42 console.error('usage: gate.mjs <built engine: dist> [--update] [--against <dist>] [--only <word>] [--no-growth]');

Callers 1

gate.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected