MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / parseArgs

Function parseArgs

scripts/build-website-manifest.mjs:25–37  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

23const repoRoot = path.resolve(__dirname, "..");
24
25function parseArgs(argv) {
26 const args = { out: undefined, ref: undefined };
27 for (const a of argv) {
28 if (a.startsWith("--out=")) args.out = a.slice("--out=".length);
29 else if (a.startsWith("--ref=")) args.ref = a.slice("--ref=".length);
30 else if (a === "--help" || a === "-h") args.help = true;
31 else {
32 console.error(`Unknown argument: ${a}`);
33 process.exit(2);
34 }
35 }
36 return args;
37}
38
39function usage() {
40 console.error(

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected