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

Function arg

scripts/codex-review-ingest.js:8–14  ·  view source on GitHub ↗
(name, fallback = null)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected