Skip to content

Commit 995b29f

Browse files
authored
Rename no-files option
Rename no-files option to no-files-exit-code
1 parent 1eb9b6f commit 995b29f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/LintCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function configure()
141141
'Allow to silenty fail.'
142142
)
143143
->addOption(
144-
'no-files',
144+
'no-files-exit-code',
145145
'nf',
146146
InputOption::VALUE_NONE,
147147
'Throw error if no files processed.'
@@ -215,7 +215,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
215215
if ($fileCount <= 0) {
216216
$output->writeln('<info>Could not find files to lint</info>');
217217

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

0 commit comments

Comments
 (0)