* Formats the unknown subcommand with parent command context and suggestions. * * @since 4.0.0
()
| 466 | * @since 4.0.0 |
| 467 | */ |
| 468 | override get message() { |
| 469 | const suggestionText = this.suggestions.length > 0 |
| 470 | ? `\n\n Did you mean this?\n ${this.suggestions.join("\n ")}` |
| 471 | : "" |
| 472 | return this.parent |
| 473 | ? `Unknown subcommand "${this.subcommand}" for "${this.parent.join(" ")}"${suggestionText}` |
| 474 | : `Unknown subcommand "${this.subcommand}"${suggestionText}` |
| 475 | } |
| 476 | } |
| 477 | |
| 478 | /** |