Skip to content

Commit e639686

Browse files
committed
Revert invalid changes
1 parent 8f4d376 commit e639686

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,14 @@ public function doRun(InputInterface $input, OutputInterface $output)
184184

185185
if (true === $input->hasParameterOption(array('--quiet', '-q'))) {
186186
$output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
187-
} elseif($input->hasParameterOption('--verbose')) {
188-
if ($input->getParameterOption('--verbose') === 3) {
187+
} else {
188+
if ($input->hasParameterOption('-vvv') || $input->hasParameterOption('--verbose=3')) {
189189
$output->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
190-
} elseif ($input->getParameterOption('--verbose') === 2) {
190+
} elseif ($input->hasParameterOption('-vv') || $input->hasParameterOption('--verbose=2')) {
191191
$output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
192-
} else {
192+
} elseif ($input->hasParameterOption('-v') || $input->hasParameterOption('--verbose=1') || $input->hasParameterOption('--verbose')) {
193193
$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
194194
}
195-
}elseif($input->hasParameterOption('-v')) {
196-
$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
197195
}
198196

199197
if (true === $input->hasParameterOption(array('--version', '-V'))) {

0 commit comments

Comments
 (0)