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

Function parseArgs

scripts/generate-skill-projections.js:10–18  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

8const CITADEL_ROOT = path.resolve(__dirname, '..');
9
10function parseArgs(argv) {
11 return {
12 projectRoot: argv.find((arg, index) => argv[index - 1] === '--project-root')
13 ? path.resolve(argv[argv.indexOf('--project-root') + 1])
14 : process.cwd(),
15 skillName: argv.find((arg, index) => argv[index - 1] === '--skill') || null,
16 dryRun: argv.includes('--dry-run'),
17 };
18}
19
20function main() {
21 const args = parseArgs(process.argv.slice(2));

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected