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

Method default

lib/option.js:47–51  ·  view source on GitHub ↗

* Set the default value, and optionally supply the description to be displayed in the help. * * @param {*} value * @param {string} [description] * @return {Option}

(value, description)

Source from the content-addressed store, hash-verified

45 */
46
47 default(value, description) {
48 this.defaultValue = value;
49 this.defaultValueDescription = description;
50 return this;
51 }
52
53 /**
54 * Preset to use when option used without option-argument, especially optional but also boolean and negated.

Calls

no outgoing calls

Tested by 1