* Set aliases for the command. * * Only the first alias is shown in the auto-generated help. * * @param {string[]} [aliases] * @return {(string[]|Command)}
(aliases)
| 2301 | */ |
| 2302 | |
| 2303 | aliases(aliases) { |
| 2304 | // Getter for the array of aliases is the main reason for having aliases() in addition to alias(). |
| 2305 | if (aliases === undefined) return this._aliases; |
| 2306 | |
| 2307 | aliases.forEach((alias) => this.alias(alias)); |
| 2308 | return this; |
| 2309 | } |
| 2310 | |
| 2311 | /** |
| 2312 | * Set / get the command usage `str`. |
no test coverage detected