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

Function arg

scripts/codex-windows-check.js:7–13  ·  view source on GitHub ↗
(name, fallback = null)

Source from the content-addressed store, hash-verified

5const { detectWindowsCodexSetup } = require('../core/codex/native-integrations');
6
7function arg(name, fallback = null) {
8 const prefix = `${name}=`;
9 const inline = process.argv.find((value) => value.startsWith(prefix));
10 if (inline) return inline.slice(prefix.length);
11 const idx = process.argv.indexOf(name);
12 return idx >= 0 ? process.argv[idx + 1] : fallback;
13}
14
15const report = detectWindowsCodexSetup({
16 projectRoot: arg('--project-root', process.cwd()),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected