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

Method allowUnknownOption

lib/command.js:828–831  ·  view source on GitHub ↗

* Allow unknown options on the command line. * * @param {boolean} [allowUnknown] - if `true` or omitted, no error will be thrown for unknown options. * @return {Command} `this` command for chaining

(allowUnknown = true)

Source from the content-addressed store, hash-verified

826 * @return {Command} `this` command for chaining
827 */
828 allowUnknownOption(allowUnknown = true) {
829 this._allowUnknownOption = !!allowUnknown;
830 return this;
831 }
832
833 /**
834 * Allow excess command-arguments on the command line. Pass false to make excess arguments an error.

Calls

no outgoing calls

Tested by 1

makeProgramFunction · 0.64