* Define argument syntax for command, adding multiple at once (without descriptions). * * See also .argument(). * * @example * program.arguments(' [env]'); * * @param {string} names * @return {Command} `this` command for chaining
(names)
| 358 | */ |
| 359 | |
| 360 | arguments(names) { |
| 361 | names |
| 362 | .trim() |
| 363 | .split(/ +/) |
| 364 | .forEach((detail) => { |
| 365 | this.argument(detail); |
| 366 | }); |
| 367 | return this; |
| 368 | } |
| 369 | |
| 370 | /** |
| 371 | * Define argument syntax for command, adding a prepared argument. |