MCPcopy Index your code
hub / github.com/MisterBooo/LeetCodeAnimation / getArg

Function getArg

tools/scripts/sync-algomooc-index.js:32–36  ·  view source on GitHub ↗
(name, fallback)

Source from the content-addressed store, hash-verified

30const writeLog = flags.has("--log");
31
32function getArg(name, fallback) {
33 const index = args.indexOf(name);
34 if (index >= 0 && args[index + 1]) return args[index + 1];
35 return fallback;
36}
37
38const sourceFile = path.resolve(getArg("--source", process.env.ALGOMOOC_STUDY_INDEX || DEFAULT_SOURCE));
39const siteBase = getArg("--site", DEFAULT_SITE).replace(/\/+$/, "");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected