diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
index b822b21b9a7c1..223f2cca1bfd2 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
@@ -121,8 +121,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
$options['output'] = $io;
$helper->describe($output, $object, $options);
- if (!$input->getArgument('name') && $input->isInteractive()) {
- $io->comment('To search for a specific service, re-run this command with a search term. (e.g. debug:container log)');
+ if (!$input->getArgument('name') && !$input->getOption('tag') && !$input->getOption('parameter') && $input->isInteractive()) {
+ if ($input->getOption('tags')) {
+ $io->comment('To search for a specific tag, re-run this command with a search term. (e.g. debug:container --tag=form.type)');
+ } elseif ($input->getOption('parameters')) {
+ $io->comment('To search for a specific parameter, re-run this command with a search term. (e.g. debug:container --parameter=kernel.debug)');
+ } else {
+ $io->comment('To search for a specific service, re-run this command with a search term. (e.g. debug:container log)');
+ }
}
}