MCPcopy
hub / github.com/tj/commander.js / createPepperProgram

Function createPepperProgram

tests/options.bool.combo.test.js:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 // boolean option combo with no default
10 describe('positive option with no default', () => {
11 function createPepperProgram() {
12 const program = new commander.Command();
13 program
14 .option('-p, --pepper', 'add pepper')
15 .option('-P, --no-pepper', 'remove pepper');
16 return program;
17 }
18
19 test('when option not specified then value is undefined', () => {
20 const program = createPepperProgram();

Callers 1

Calls 1

optionMethod · 0.95

Tested by

no test coverage detected