MCPcopy
hub / github.com/graphql/graphql-spec / parseArgs

Function parseArgs

scripts/generate-contributor-list.mjs:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42function parseArgs() {
43 const args = RAW_ARGS.filter(x => x !== "--debug");
44 if (args.length === 0) die("Usage: node scripts/generate-contributor-list.mjs <git-range> [-- <paths...>] [--debug]");
45 const dd = args.indexOf("--");
46 return { range: args[0], paths: dd === -1 ? [] : args.slice(dd + 1) };
47}
48
49function execGit(argv, opts = {}) {
50 try {

Callers 1

mainFunction · 0.85

Calls 1

dieFunction · 0.85

Tested by

no test coverage detected