(onOrOff?: string)
| 30 | } |
| 31 | |
| 32 | function interpretEnabled(onOrOff?: string): boolean | undefined { |
| 33 | switch (onOrOff) { |
| 34 | case 'on': |
| 35 | return true; |
| 36 | case 'off': |
| 37 | return false; |
| 38 | case undefined: |
| 39 | return undefined; |
| 40 | } |
| 41 | |
| 42 | fatal(`Argument must be ${c.strong('on')} or ${c.strong('off')} (or left unspecified)`); |
| 43 | } |
no test coverage detected