Browse Source

-v should not show everything twice, refs #4846

Jordi Boggiano 9 years ago
parent
commit
12b860733f
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/Composer/Command/SuggestsCommand.php

+ 1 - 4
src/Composer/Command/SuggestsCommand.php

@@ -102,15 +102,12 @@ EOT
         // Determine output mode
         $mode = 0;
         $io = $this->getIO();
-        if ($input->getOption('by-package')) {
+        if ($input->getOption('by-package') || $io->isVerbose()) {
             $mode |= 1;
         }
         if ($input->getOption('by-suggestion')) {
             $mode |= 2;
         }
-        if ($io->isVerbose()) {
-            $mode = ~0;
-        }
 
         // Simple mode
         if ($mode === 0) {