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

Method conflicts

lib/option.js:82–85  ·  view source on GitHub ↗

* Add option name(s) that conflict with this option. * An error will be displayed if conflicting options are found during parsing. * * @example * new Option('--rgb').conflicts('cmyk'); * new Option('--js').conflicts(['ts', 'jsx']); * * @param {(string | string[])} names * @re

(names)

Source from the content-addressed store, hash-verified

80 */
81
82 conflicts(names) {
83 this.conflictsWith = this.conflictsWith.concat(names);
84 return this;
85 }
86
87 /**
88 * Specify implied option values for when this option is set and the implied options are not.

Callers 8

makeProgramFunction · 0.80
options-extra.jsFile · 0.80
index.test-d.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

makeProgramFunction · 0.64