MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / argValue

Function argValue

apps/cloud/scripts/migrate.ts:18–21  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

16const args = process.argv.slice(2);
17const hasArg = (name: string): boolean => args.includes(name);
18const argValue = (name: string): string | undefined => {
19 const index = args.indexOf(name);
20 return index >= 0 ? args[index + 1] : undefined;
21};
22
23const dryRun = hasArg("--dry-run");
24const schemaOnly = hasArg("--schema-only");

Callers 1

migrate.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected