Skip to content

Commit a19ca0e

Browse files
committed
Note about --allow-empty-baseline
1 parent 5615d5b commit a19ca0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Command/AnalyseCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
249249
if ($generateBaselineFile !== null) {
250250
if (!$allowEmptyBaseline && !$analysisResult->hasErrors()) {
251251
$inceptionResult->getStdOutput()->getStyle()->error('No errors were found during the analysis. Baseline could not be generated.');
252+
$inceptionResult->getStdOutput()->writeLineFormatted('To allow generating empty baselines, pass <fg=cyan>--allow-empty-baseline</> option.');
252253

253254
return $inceptionResult->handleReturn(1);
254255
}

0 commit comments

Comments
 (0)