Skip to content

Commit

Permalink
Rename no-files option
Browse files Browse the repository at this point in the history
Rename no-files option to no-files-exit-code
  • Loading branch information
vkryklyvenko authored Jun 1, 2022
1 parent 1eb9b6f commit 995b29f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/LintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function configure()
'Allow to silenty fail.'
)
->addOption(
'no-files',
'no-files-exit-code',
'nf',
InputOption::VALUE_NONE,
'Throw error if no files processed.'
Expand Down Expand Up @@ -215,7 +215,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($fileCount <= 0) {
$output->writeln('<info>Could not find files to lint</info>');

if (!empty($options['no-files'])) {
if (!empty($options['no-files-exit-code'])) {
$code = 1;
}

Expand Down

0 comments on commit 995b29f

Please sign in to comment.