MCPcopy
hub / github.com/anomalyco/models.dev / flag

Function flag

packages/core/script/generate-databricks.ts:25–28  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

23
24const args = process.argv.slice(2);
25const flag = (name: string) => {
26 const i = args.indexOf(`--${name}`);
27 return i !== -1 ? args[i + 1] : undefined;
28};
29const dryRun = args.includes("--dry-run");
30const newOnly = args.includes("--new-only");
31

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected