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

Method missingMandatoryOptionValue

lib/command.js:2070–2073  ·  view source on GitHub ↗

* `Option` does not have a value, and is a mandatory option. * * @param {Option} option * @private

(option)

Source from the content-addressed store, hash-verified

2068 */
2069
2070 missingMandatoryOptionValue(option) {
2071 const message = `error: required option '${option.flags}' not specified`;
2072 this.error(message, { code: 'commander.missingMandatoryOptionValue' });
2073 }
2074
2075 /**
2076 * `Option` conflicts with another option.

Callers 1

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected