Skip to content

Commit f956dcc

Browse files
committed
[TwigBridge] fix command option mode (InputOption::VALUE_REQUIRED)
1 parent bbf3694 commit f956dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Command/LintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function configure(): void
5555
->addOption('format', null, InputOption::VALUE_REQUIRED, \sprintf('The output format ("%s")', implode('", "', $this->getAvailableFormatOptions())))
5656
->addOption('show-deprecations', null, InputOption::VALUE_NONE, 'Show deprecations as errors')
5757
->addArgument('filename', InputArgument::IS_ARRAY, 'A file, a directory or "-" for reading from STDIN')
58-
->addOption('excludes', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Excluded directories', [])
58+
->addOption('excludes', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Excluded directories', [])
5959
->setHelp(<<<'EOF'
6060
The <info>%command.name%</info> command lints a template and outputs to STDOUT
6161
the first encountered syntax error.

0 commit comments

Comments
 (0)