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

Method missingArgument

lib/command.js:2046–2049  ·  view source on GitHub ↗

* Argument `name` is missing. * * @param {string} name * @private

(name)

Source from the content-addressed store, hash-verified

2044 */
2045
2046 missingArgument(name) {
2047 const message = `error: missing required argument '${name}'`;
2048 this.error(message, { code: 'commander.missingArgument' });
2049 }
2050
2051 /**
2052 * `Option` is missing an argument.

Callers 1

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected