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

Method showSuggestionAfterError

lib/command.js:274–277  ·  view source on GitHub ↗

* Display suggestion of similar commands for unknown commands, or options for unknown options. * * @param {boolean} [displaySuggestion] * @return {Command} `this` command for chaining

(displaySuggestion = true)

Source from the content-addressed store, hash-verified

272 * @return {Command} `this` command for chaining
273 */
274 showSuggestionAfterError(displaySuggestion = true) {
275 this._showSuggestionAfterError = !!displaySuggestion;
276 return this;
277 }
278
279 /**
280 * Add a prepared subcommand.

Callers 4

getSuggestionFunction · 0.80
index.test-d.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

getSuggestionFunction · 0.64