From 0964c02acbd86623014774c80d425360df52ef3a Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 4 Jul 2015 12:02:57 +0100 Subject: [PATCH] Use only one level of verbosity --- doc/03-cli.md | 4 ++-- src/Composer/Command/SuggestsCommand.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index 6182db682..136644519 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -303,8 +303,8 @@ to limit output to suggestions made by those packages only. ### Options * **--no-dev:** Excludes suggestions from `require-dev` packages. -* **-v[v]:** Increased verbosity adds suggesting package name (`-v`) and - reason for suggestion (`-vv`). +* **--verbose (-v):** Increased verbosity adds suggesting package name and + reason for suggestion. ## depends diff --git a/src/Composer/Command/SuggestsCommand.php b/src/Composer/Command/SuggestsCommand.php index c6f7385fd..d59ef1dc6 100644 --- a/src/Composer/Command/SuggestsCommand.php +++ b/src/Composer/Command/SuggestsCommand.php @@ -32,6 +32,8 @@ class SuggestsCommand extends Command The %command.name% command shows suggested packages. +With -v you also see which package suggested it and why. + EOT ) ; @@ -87,10 +89,8 @@ EOT { $io = $this->getIO(); - if ($io->isVeryVerbose()) { + if ($io->isVerbose()) { $io->write(sprintf('%s suggests %s: %s', $package, $suggestion, $reason)); - } elseif ($io->isVerbose()) { - $io->write(sprintf('%s suggests %s', $package, $suggestion)); } else { $io->write(sprintf('%s', $suggestion)); }