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

Function configureCommand

tests/command.allowExcessArguments.test.js:11–13  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

9 cases.forEach((hasActionHandler) => {
10 describe(`when ${hasActionHandler ? 'has' : 'no'} action handler`, () => {
11 function configureCommand(cmd) {
12 if (hasActionHandler) cmd.action(() => {});
13 }
14
15 test('when specify excess program argument then error by default', () => {
16 const program = createTestCommand();

Calls 1

actionMethod · 0.80

Tested by

no test coverage detected