Use only one level of verbosity
parent
5ba41514a9
commit
0964c02acb
|
@ -303,8 +303,8 @@ to limit output to suggestions made by those packages only.
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
* **--no-dev:** Excludes suggestions from `require-dev` packages.
|
* **--no-dev:** Excludes suggestions from `require-dev` packages.
|
||||||
* **-v[v]:** Increased verbosity adds suggesting package name (`-v`) and
|
* **--verbose (-v):** Increased verbosity adds suggesting package name and
|
||||||
reason for suggestion (`-vv`).
|
reason for suggestion.
|
||||||
|
|
||||||
## depends
|
## depends
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@ class SuggestsCommand extends Command
|
||||||
|
|
||||||
The <info>%command.name%</info> command shows suggested packages.
|
The <info>%command.name%</info> command shows suggested packages.
|
||||||
|
|
||||||
|
With <info>-v</info> you also see which package suggested it and why.
|
||||||
|
|
||||||
EOT
|
EOT
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -87,10 +89,8 @@ EOT
|
||||||
{
|
{
|
||||||
$io = $this->getIO();
|
$io = $this->getIO();
|
||||||
|
|
||||||
if ($io->isVeryVerbose()) {
|
if ($io->isVerbose()) {
|
||||||
$io->write(sprintf('<comment>%s</comment> suggests <info>%s</info>: %s', $package, $suggestion, $reason));
|
$io->write(sprintf('<comment>%s</comment> suggests <info>%s</info>: %s', $package, $suggestion, $reason));
|
||||||
} elseif ($io->isVerbose()) {
|
|
||||||
$io->write(sprintf('<comment>%s</comment> suggests <info>%s</info>', $package, $suggestion));
|
|
||||||
} else {
|
} else {
|
||||||
$io->write(sprintf('<info>%s</info>', $suggestion));
|
$io->write(sprintf('<info>%s</info>', $suggestion));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue