MCPcopy Create free account
hub / github.com/SethGammon/Citadel / withoutRuntimeArgs

Function withoutRuntimeArgs

scripts/install.js:16–28  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

14
15Examples:
16 node scripts/install.js --runtime claude --install --scope local
17 node scripts/install.js --runtime codex --install
18 node scripts/install.js --runtime opencode --dry-run
19
20Run the runtime-specific helper for all options:
21 node scripts/claude-install.js --help
22 node scripts/codex-install.js --help
23`;
24
25function arg(argv, name, fallback = null) {
26 const prefix = `${name}=`;
27 const inline = argv.find((value) => value.startsWith(prefix));
28 if (inline) return inline.slice(prefix.length);
29 const idx = argv.indexOf(name);
30 return idx >= 0 ? argv[idx + 1] : fallback;
31}

Callers 1

install.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected