MCPcopy Index your code
hub / github.com/tj/commander.js / showHelpAfterError

Method showHelpAfterError

lib/command.js:262–266  ·  view source on GitHub ↗

* Display the help or a custom message after an error occurs. * * @param {(boolean|string)} [displayHelp] * @return {Command} `this` command for chaining

(displayHelp = true)

Source from the content-addressed store, hash-verified

260 * @return {Command} `this` command for chaining
261 */
262 showHelpAfterError(displayHelp = true) {
263 if (typeof displayHelp !== 'string') displayHelp = !!displayHelp;
264 this._showHelpAfterError = displayHelp;
265 return this;
266 }
267
268 /**
269 * Display suggestion of similar commands for unknown commands, or options for unknown options.

Callers 5

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

Calls

no outgoing calls

Tested by 1

makeProgramFunction · 0.64