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

Method description

lib/command.js:2232–2240  ·  view source on GitHub ↗

* Set the description. * * @param {string} [str] * @param {object} [argsDescription] * @return {(string|Command)}

(str, argsDescription)

Source from the content-addressed store, hash-verified

2230 * @return {(string|Command)}
2231 */
2232 description(str, argsDescription) {
2233 if (str === undefined && argsDescription === undefined)
2234 return this._description;
2235 this._description = str;
2236 if (argsDescription) {
2237 this._argsDescription = argsDescription;
2238 }
2239 return this;
2240 }
2241
2242 /**
2243 * Set the summary. Used when listed as subcommand of parent.

Calls

no outgoing calls

Tested by 1

makeProgramFunction · 0.76