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

Function getFlag

scripts/local-daemon.js:44–48  ·  view source on GitHub ↗
(name, fallback)

Source from the content-addressed store, hash-verified

42 help: args.includes('--help') || args.includes('-h'),
43};
44
45function getFlag(name, fallback) {
46 const i = args.indexOf(name);
47 if (i === -1) return fallback;
48 return args[i + 1] ?? fallback;
49}
50
51if (opts.help) {

Callers 1

local-daemon.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected