* Display the help or a custom message after an error occurs. * * @param {(boolean|string)} [displayHelp] * @return {Command} `this` command for chaining
(displayHelp = true)
| 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. |
no outgoing calls