@@ -16,7 +16,7 @@ import {
1616
1717import {
1818 CommandLineFlagParameter ,
19- CommandLineIntegerParameter ,
19+ CommandLineStringParameter ,
2020 CommandLineStringListParameter ,
2121 CommandLineOptionParameter ,
2222 ICommandLineActionOptions
@@ -39,7 +39,7 @@ export class CustomRushAction extends BaseRushAction {
3939 private _fromFlag : CommandLineStringListParameter ;
4040 private _toFlag : CommandLineStringListParameter ;
4141 private _verboseParameter : CommandLineFlagParameter ;
42- private _parallelismParameter : CommandLineIntegerParameter | undefined ;
42+ private _parallelismParameter : CommandLineStringParameter | undefined ;
4343
4444 constructor ( private _parser : RushCommandLineParser ,
4545 options : ICommandLineActionOptions ,
@@ -75,9 +75,9 @@ export class CustomRushAction extends BaseRushAction {
7575
7676 // if this is parallizable, then use the value from the flag (undefined or a number),
7777 // if this is not parallelized, then use 1 core
78- const parallelism : number | undefined = this . _isParallelized ( )
78+ const parallelism : string | undefined = this . _isParallelized ( )
7979 ? this . _parallelismParameter ! . value
80- : 1 ;
80+ : '1' ;
8181
8282 // collect all custom flags here
8383 const customFlags : string [ ] = [ ] ;
@@ -127,12 +127,13 @@ export class CustomRushAction extends BaseRushAction {
127127
128128 protected onDefineParameters ( ) : void {
129129 if ( this . _isParallelized ( ) ) {
130- this . _parallelismParameter = this . defineIntegerParameter ( {
130+ this . _parallelismParameter = this . defineStringParameter ( {
131131 parameterLongName : '--parallelism' ,
132132 parameterShortName : '-p' ,
133133 key : 'COUNT' ,
134- description : 'Specify the number of concurrent build processes.'
135- + ' If omitted, the parallelism will be based on the number of CPU cores.'
134+ description : 'Specify the number of concurrent build processes'
135+ + ' The value "max" can be specified to indicate the number of CPU cores.'
136+ + ' If this parameter omitted, the default value depends on the operating system and number of CPU cores.'
136137 } ) ;
137138 }
138139 this . _toFlag = this . defineStringListParameter ( {
0 commit comments