@@ -523,21 +523,21 @@ export class Command {
523
523
*
524
524
* @returns `this` command for chaining
525
525
*/
526
- option ( flags : string , description ?: string , defaultValue ?: string | boolean ) : this;
526
+ option ( flags : string , description ?: string , defaultValue ?: string | boolean | string [ ] ) : this;
527
527
option < T > ( flags : string , description : string , fn : ( value : string , previous : T ) => T , defaultValue ?: T ) : this;
528
528
/** @deprecated since v7, instead use choices or a custom function */
529
- option ( flags : string , description : string , regexp : RegExp , defaultValue ?: string | boolean ) : this;
529
+ option ( flags : string , description : string , regexp : RegExp , defaultValue ?: string | boolean | string [ ] ) : this;
530
530
531
531
/**
532
532
* Define a required option, which must have a value after parsing. This usually means
533
533
* the option must be specified on the command line. (Otherwise the same as .option().)
534
534
*
535
535
* The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
536
536
*/
537
- requiredOption ( flags : string , description ?: string , defaultValue ?: string | boolean ) : this;
537
+ requiredOption ( flags : string , description ?: string , defaultValue ?: string | boolean | string [ ] ) : this;
538
538
requiredOption < T > ( flags : string , description : string , fn : ( value : string , previous : T ) => T , defaultValue ?: T ) : this;
539
539
/** @deprecated since v7, instead use choices or a custom function */
540
- requiredOption ( flags : string , description : string , regexp : RegExp , defaultValue ?: string | boolean ) : this;
540
+ requiredOption ( flags : string , description : string , regexp : RegExp , defaultValue ?: string | boolean | string [ ] ) : this;
541
541
542
542
/**
543
543
* Factory routine to create a new unattached option.
0 commit comments