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

Function argValue

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

Source from the content-addressed store, hash-verified

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

Callers 1

migrate.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected