summaryrefslogtreecommitdiff
path: root/benchmark/_cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/_cli.js')
-rw-r--r--benchmark/_cli.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmark/_cli.js b/benchmark/_cli.js
index be2f7ffff8..17718c4c4d 100644
--- a/benchmark/_cli.js
+++ b/benchmark/_cli.js
@@ -45,13 +45,13 @@ function CLI(usage, settings) {
currentOptional = arg.slice(1);
}
- // Default the value to true
- if (!settings.arrayArgs.includes(currentOptional)) {
+ if (settings.boolArgs && settings.boolArgs.includes(currentOptional)) {
this.optional[currentOptional] = true;
+ mode = 'both';
+ } else {
+ // expect the next value to be option related (either -- or the value)
+ mode = 'option';
}
-
- // expect the next value to be option related (either -- or the value)
- mode = 'option';
} else if (mode === 'option') {
// Optional arguments value