(defaultValue)
| 50 | // Flag with default, say from an environment variable. |
| 51 | |
| 52 | function createPepperProgramWithDefault(defaultValue) { |
| 53 | const program = new commander.Command(); |
| 54 | program |
| 55 | .option('-p, --pepper', 'add pepper', defaultValue) |
| 56 | .option('-P, --no-pepper', 'remove pepper'); |
| 57 | return program; |
| 58 | } |
| 59 | |
| 60 | // boolean option combo, default true, long flags |
| 61 | describe('option with default of true, long flags', () => { |
no test coverage detected