* Find matching command. * * @private * @return {Command | undefined}
(name)
| 1659 | * @return {Command | undefined} |
| 1660 | */ |
| 1661 | _findCommand(name) { |
| 1662 | if (!name) return undefined; |
| 1663 | return this.commands.find( |
| 1664 | (cmd) => cmd._name === name || cmd._aliases.includes(name), |
| 1665 | ); |
| 1666 | } |
| 1667 | |
| 1668 | /** |
| 1669 | * Return an option matching `arg` if any. |
no outgoing calls