Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Bugfix: fixed issue with shorthand flags not working for quiet and ve…
Browse files Browse the repository at this point in the history
…rbose output
  • Loading branch information
mfrankruijter committed Sep 6, 2020
1 parent b315049 commit 7302ddf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions src/Component/Router/CommandRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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);
}
Expand Down

0 comments on commit 7302ddf

Please sign in to comment.