From e8bc9232e0bee47361a7d2c1384933999047f5b0 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 9 Jan 2016 18:22:49 +0000 Subject: [PATCH] Add explanation about match args in the "no installed package" output, refs #4663 --- src/Composer/Command/DependsCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Composer/Command/DependsCommand.php b/src/Composer/Command/DependsCommand.php index 0fb524117..d38c3d9db 100644 --- a/src/Composer/Command/DependsCommand.php +++ b/src/Composer/Command/DependsCommand.php @@ -130,7 +130,11 @@ EOT sort($messages); $io->write($messages); } else { - $io->writeError('There is no installed package depending on "'.$needle.'".'); + $matchText = ''; + if ($input->getOption('match-constraint') !== '*') { + $matchText = ' in versions '.($matchInvert ? 'not ':'').'matching ' . $input->getOption('match-constraint'); + } + $io->writeError('There is no installed package depending on "'.$needle.'"'.$matchText.'.'); } } }