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

Method preset

lib/option.js:65–68  ·  view source on GitHub ↗

* Preset to use when option used without option-argument, especially optional but also boolean and negated. * The custom processing (parseArg) is called. * * @example * new Option('--color').default('GREYSCALE').preset('RGB'); * new Option('--donate [amount]').preset('20').argParser(p

(arg)

Source from the content-addressed store, hash-verified

63 */
64
65 preset(arg) {
66 this.presetArg = arg;
67 return this;
68 }
69
70 /**
71 * Add option name(s) that conflict with this option.

Calls

no outgoing calls

Tested by 1