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

Function createPortProgram

tests/options.values.test.js:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14 for (const [value] of valuesList) {
15 function createPortProgram() {
16 const program = new commander.Command();
17 program.option('-p,--port <number>', 'specify port');
18 return program;
19 }
20
21 test(`when option with required value specified as ${value} and short flag followed by value then value is as specified`, () => {
22 const program = createPortProgram();

Callers 1

Calls 1

optionMethod · 0.95

Tested by

no test coverage detected