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

Function createProgram1032

tests/command.parseOptions.test.js:16–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14describe('parsing regression tests', () => {
15 // https://github.com/tj/commander.js/issues/1032
16 function createProgram1032() {
17 const program = new commander.Command();
18 program
19 .command('doit [id]')
20 .option('--better', 'do it better')
21 .action((id, cmd) => {});
22 return program;
23 }
24
25 // https://github.com/tj/commander.js/issues/1032
26 test('when specify subcommand and argument then program.args not empty', () => {

Callers 1

Calls 3

commandMethod · 0.95
actionMethod · 0.80
optionMethod · 0.80

Tested by

no test coverage detected