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

Method optionMissingArgument

lib/command.js:2058–2061  ·  view source on GitHub ↗

* `Option` is missing an argument. * * @param {Option} option * @private

(option)

Source from the content-addressed store, hash-verified

2056 */
2057
2058 optionMissingArgument(option) {
2059 const message = `error: option '${option.flags}' argument missing`;
2060 this.error(message, { code: 'commander.optionMissingArgument' });
2061 }
2062
2063 /**
2064 * `Option` does not have a value, and is a mandatory option.

Callers 1

parseOptionsMethod · 0.95

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected