Skip to content

Commit 8fe1664

Browse files
authored
fix(command): Allow multiple skip-file options in CheckCommentedCodeCommand (#112)
- Update the skip-file option to accept multiple values by setting VALUE_IS_ARRAY - Enable users to specify several file paths to skip during commented code checks - Improve flexibility and usability of the command - Necessary to support scenarios where more than one file needs exclusion
1 parent d53a04a commit 8fe1664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/CheckCommentedCodeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure(): void
3333
InputArgument::REQUIRED | InputArgument::IS_ARRAY,
3434
'One or more paths to check'
3535
);
36-
$this->addOption('skip-file', null, InputOption::VALUE_REQUIRED, 'Skip file path');
36+
$this->addOption('skip-file', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Skip file path');
3737
$this->setDescription('Checks code for commented snippets');
3838

3939
$this->addOption(

0 commit comments

Comments
 (0)