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

Function arg

scripts/claude-install.js:15–21  ·  view source on GitHub ↗
(name, fallback = null)

Source from the content-addressed store, hash-verified

13
14const DEFAULT_PLUGIN_ROOT = path.resolve(__dirname, '..');
15
16function has(flag) {
17 return process.argv.includes(flag);
18}
19
20function arg(name, fallback = null) {
21 const prefix = `${name}=`;
22 const inline = process.argv.find((value) => value.startsWith(prefix));
23 if (inline) return inline.slice(prefix.length);
24 const idx = process.argv.indexOf(name);

Callers 1

claude-install.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected