()
| 14 | arg3?: number |
| 15 | ): void { |
| 16 | function parseArgs(): [ |
| 17 | Pick<ParsedCommand, 'demanded' | 'optional'>, |
| 18 | any[], |
| 19 | number?, |
| 20 | ] { |
| 21 | return typeof arg1 === 'object' |
| 22 | ? [{demanded: [], optional: []}, arg1, arg2 as number | undefined] |
| 23 | : [ |
| 24 | parseCommand(`cmd ${arg1}`), |
| 25 | arg2 as any[], |
| 26 | arg3 as number | undefined, |
| 27 | ]; |
| 28 | } |
| 29 | // TODO: should this eventually raise an exception. |
| 30 | try { |
| 31 | // preface the argument description with "cmd", so |
no test coverage detected
searching dependent graphs…