Skip to content

Commit c6a515d

Browse files
F#78299 US#190650 T#207172 add the support of multi coverage file for the baseline command + raises an error when the custom coverage can be increased
1 parent ef03086 commit c6a515d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/BaselineCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ protected function configure(): void
2828
$this->setName("baseline")
2929
->setDescription("Generate phpfci.xml based on a given coverage.xml")
3030
->addArgument('coverage', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'Path to phpunit\'s coverage.xml')
31-
->addArgument('config', InputOption::VALUE_REQUIRED, 'Path to write the configuration file')
31+
->addOption('config', 'c', InputOption::VALUE_REQUIRED, 'Path to write the configuration file')
3232
->addOption('threshold', '', InputOption::VALUE_REQUIRED, 'Minimum coverage threshold, defaults to 100', 100)
3333
->addOption('baseDir', '', InputOption::VALUE_REQUIRED, 'Base directory from where to determine the relative config paths');
3434
}
3535

3636
protected function execute(InputInterface $input, OutputInterface $output): int
3737
{
38-
$configArgument = $input->getArgument('config');
38+
$configArgument = $input->getOption('config');
3939
if (is_array($configArgument)) {
4040
if (count($configArgument) === 0) {
4141
throw new RuntimeException('Missing config argument');

0 commit comments

Comments
 (0)