From 59edd4e6d623613733020e831b807a80888927e5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 14 Oct 2012 13:41:08 +0200 Subject: [PATCH] Show version in composer show --self --- src/Composer/Command/ShowCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 48ecef8ad..26629c870 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -94,6 +94,8 @@ EOT if (!$package) { throw new \InvalidArgumentException('Package '.$input->getArgument('package').' not found'); } + } else { + $versions = array($package->getPrettyVersion() => $package->getVersion()); } $this->printMeta($input, $output, $package, $versions, $installedRepo, $repos);