diff --git a/packages/@best/config/src/utils/normalize.ts b/packages/@best/config/src/utils/normalize.ts index e3641e22..ef455d79 100644 --- a/packages/@best/config/src/utils/normalize.ts +++ b/packages/@best/config/src/utils/normalize.ts @@ -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];