(parsed: MutableWeeklyOptions)
| 144 | } |
| 145 | |
| 146 | function requireDateRange(parsed: MutableWeeklyOptions) { |
| 147 | if (!parsed.from || !parsed.to) { |
| 148 | printUsage(); |
| 149 | process.exit(1); |
| 150 | } |
| 151 | |
| 152 | validateDateRange(parsed.from, parsed.to); |
| 153 | return { |
| 154 | from: parsed.from, |
| 155 | to: parsed.to, |
| 156 | }; |
| 157 | } |
| 158 | |
| 159 | function validateDateRange(from: string, to: string) { |
| 160 | validateCliDate(from, fail); |
no test coverage detected