diff --git a/src/Symfony/Component/Translation/Command/TranslationLintCommand.php b/src/Symfony/Component/Translation/Command/TranslationLintCommand.php index 1041de7cd2dae..e525fc07acc9b 100644 --- a/src/Symfony/Component/Translation/Command/TranslationLintCommand.php +++ b/src/Symfony/Component/Translation/Command/TranslationLintCommand.php @@ -42,7 +42,7 @@ public function __construct( public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void { - if ($input->mustSuggestOptionValuesFor('locales')) { + if ($input->mustSuggestOptionValuesFor('locale')) { $suggestions->suggestValues($this->enabledLocales); } } @@ -51,7 +51,7 @@ protected function configure(): void { $this ->setDefinition([ - new InputOption('locales', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Specify the locales to lint.', $this->enabledLocales), + new InputOption('locale', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Specify the locales to lint.', $this->enabledLocales), ]) ->setHelp(<<<'EOF' The %command.name% command lint translations. @@ -68,7 +68,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v protected function execute(InputInterface $input, OutputInterface $output): int { - $locales = $input->getOption('locales'); + $locales = $input->getOption('locale'); /** @var array> $errors */ $errors = [];