MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parseArgs

Function parseArgs

scripts/run-e2e.mjs:16–33  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

14import { join, relative, sep } from "node:path";
15
16function parseArgs(argv) {
17 let profile = "full";
18
19 for (let i = 0; i < argv.length; i++) {
20 const a = argv[i];
21 if (a === "--profile") {
22 const v = argv[i + 1];
23 if (v === "full" || v === "reduced") {
24 profile = v;
25 i++;
26 continue;
27 }
28 throw new Error(`run-e2e: invalid --profile value: ${String(v)}`);
29 }
30 }
31
32 return { profile };
33}
34
35function listDirSorted(dir) {
36 const entries = readdirSync(dir);

Callers 1

run-e2e.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected