comparison vendor/symfony/console/Application.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
200 $output->writeln($this->getLongVersion()); 200 $output->writeln($this->getLongVersion());
201 201
202 return 0; 202 return 0;
203 } 203 }
204 204
205 try {
206 // Makes ArgvInput::getFirstArgument() able to distinguish an option from an argument.
207 $input->bind($this->getDefinition());
208 } catch (ExceptionInterface $e) {
209 // Errors must be ignored, full binding/validation happens later when the command is known.
210 }
211
205 $name = $this->getCommandName($input); 212 $name = $this->getCommandName($input);
206 if (true === $input->hasParameterOption(['--help', '-h'], true)) { 213 if (true === $input->hasParameterOption(['--help', '-h'], true)) {
207 if (!$name) { 214 if (!$name) {
208 $name = 'help'; 215 $name = 'help';
209 $input = new ArrayInput(['command_name' => $this->defaultCommand]); 216 $input = new ArrayInput(['command_name' => $this->defaultCommand]);