MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / arg

Function arg

graph-ui/tools/handtest-fixes-chat.mjs:30–35  ·  view source on GitHub ↗
(name, fallback)

Source from the content-addressed store, hash-verified

28
29const argv = process.argv.slice(2);
30const arg = (name, fallback) => {
31 const index = argv.indexOf(`--${name}`);
32 if (index < 0) return fallback;
33 const value = argv[index + 1];
34 return value === undefined || value.startsWith('--') ? true : value;
35};
36const ORIGIN = String(arg('origin', 'http://127.0.0.1:4392')).replace(/\/$/, '');
37const OUT = resolve(String(arg('out', 'verification/handtest-fixes-chat')));
38const PROFILE = resolve(String(arg('profile', join(OUT, '..', 'profile'))));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected