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

Method allowExcessArguments

lib/command.js:839–842  ·  view source on GitHub ↗

* Allow excess command-arguments on the command line. Pass false to make excess arguments an error. * * @param {boolean} [allowExcess] - if `true` or omitted, no error will be thrown for excess arguments. * @return {Command} `this` command for chaining

(allowExcess = true)

Source from the content-addressed store, hash-verified

837 * @return {Command} `this` command for chaining
838 */
839 allowExcessArguments(allowExcess = true) {
840 this._allowExcessArguments = !!allowExcess;
841 return this;
842 }
843
844 /**
845 * Enable positional options. Positional means global options are specified before subcommands which lets

Calls

no outgoing calls

Tested by 1

makeProgramFunction · 0.64