diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fa42fc..1b3e4e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 2.0.3 - 2020-09-06 +### Fixed +- Issue with shorthand flags not working for quiet and verbose output. + ## 2.0.2 - 2020-08-30 ### Fixed - Issue with big errors, which never output. diff --git a/src/Component/Router/CommandRouter.php b/src/Component/Router/CommandRouter.php index 0b81dd9..aeac498 100644 --- a/src/Component/Router/CommandRouter.php +++ b/src/Component/Router/CommandRouter.php @@ -108,6 +108,9 @@ public function __invoke(InputInterface $input): int $command = $input->getCommand(); $originalCommand = $command; try { + $command = $this->findCommand($originalCommand); + $input->loadConfiguration($command); + if ($input->isSetFlag('verbose')) { $this->output->setOutputMode( OutputModeEnum::OUTPUT_MODE_VERBOSE() @@ -120,8 +123,6 @@ public function __invoke(InputInterface $input): int ); } - $command = $this->findCommand($originalCommand); - $input->loadConfiguration($command); if ($input->isSetFlag('no-interaction')) { $this->ioFactory->setAllowReading(false); }