We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c1a87 commit 97c124bCopy full SHA for 97c124b
src/cli/cli-definitions.js
@@ -8,6 +8,15 @@ function numberParser(key) {
8
}
9
10
11
+function numberOrBoolParser(key) {
12
+ return function(opt) {
13
+ if (typeof opt === 'boolean') {
14
+ return opt;
15
+ }
16
+ return numberParser(key)(opt);
17
18
+}
19
+
20
function objectParser(opt) {
21
if (typeof opt == 'object') {
22
return opt;
@@ -229,6 +238,6 @@ export default {
229
238
},
230
239
"cluster": {
231
240
help: "Run with cluster, optionally set the number of processes default to os.cpus().length",
232
- action: numberParser("cluster"),
241
+ action: numberOrBoolParser("cluster")
233
242
234
243
};
0 commit comments