(flag)
| 34 | const DRY_RUN = args.includes('--dry-run'); |
| 35 | |
| 36 | function getArgValue(flag) { |
| 37 | const eq = args.find(a => a.startsWith(flag + '=')); |
| 38 | if (eq) return eq.slice(flag.length + 1); |
| 39 | const idx = args.indexOf(flag); |
| 40 | if (idx !== -1 && idx + 1 < args.length && !args[idx + 1].startsWith('--')) return args[idx + 1]; |
| 41 | return null; |
| 42 | } |
| 43 | const skillFilter = getArgValue('--skill'); |
| 44 | const verdictsPath = getArgValue('--verdicts'); |
| 45 |