MCPcopy Create free account
hub / github.com/cursor/plugins / requireValue

Function requireValue

orchestrate/skills/orchestrate/scripts/tools/nudge-root.ts:55–61  ·  view source on GitHub ↗
(flag: string, value: string | undefined)

Source from the content-addressed store, hash-verified

53 let pollMs = DEFAULT_POLL_MS;
54
55 const requireValue = (flag: string, value: string | undefined): string => {
56 if (value === undefined) {
57 console.error(`flag ${flag} requires a value`);
58 usage();
59 }
60 return value;
61 };
62
63 for (let i = 0; i < argv.length; i++) {
64 const a = argv[i];

Callers 1

parseArgsFunction · 0.85

Calls 1

usageFunction · 0.85

Tested by

no test coverage detected