(name, fallback)
| 30 | const writeLog = flags.has("--log"); |
| 31 | |
| 32 | function 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 | |
| 38 | const sourceFile = path.resolve(getArg("--source", process.env.ALGOMOOC_STUDY_INDEX || DEFAULT_SOURCE)); |
| 39 | const siteBase = getArg("--site", DEFAULT_SITE).replace(/\/+$/, ""); |
no outgoing calls
no test coverage detected