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

Function hasArg

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

Source from the content-addressed store, hash-verified

14
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;

Callers 1

migrate.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected