()
| 40 | } |
| 41 | |
| 42 | function 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 | |
| 49 | function execGit(argv, opts = {}) { |
| 50 | try { |