Skip to content

Commit

Permalink
fix: check for benchmarkIterations in CLI args (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
muenzpraeger authored Jan 25, 2021
1 parent e55aaa1 commit f4327b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@best/config/src/utils/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ function setCliOptionOverrides(initialOptions: UserConfig, argsCLI: CliConfig):
options.isInteractive = argsCLI[key] !== undefined ? false : undefined;
break;
case 'iterations':
options.benchmarkIterations = argsCLI[key];
if (argsCLI[key] !== undefined) {
options.benchmarkIterations = argsCLI[key];
}
break;
case 'runInBatch':
options.runInBatch = !!argsCLI[key];
Expand Down

0 comments on commit f4327b2

Please sign in to comment.