8000 bug #60998 [TwigBridge] fix command option mode (`InputOption::VALUE_… · symfony/symfony@5fc46ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 5fc46ce

Browse files
committed
bug #60998 [TwigBridge] fix command option mode (InputOption::VALUE_REQUIRED) (gharlan)
This PR was merged into the 7.2 branch. Discussion ---------- [TwigBridge] fix command option mode (`InputOption::VALUE_REQUIRED`) | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? |no <!-- if yes, also update src/**/CHANGELOG.md --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Issues | | License | MIT Follow-up for #60914 for 7.2 branch. Commits ------- f956dcc [TwigBridge] fix command option mode (InputOption::VALUE_REQUIRED)
2 parents bbf3694 + f956dcc commit 5fc46ce

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)
0