From 25fa4ec60cbe76e6244245f286afc2250fb11a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Bj=C3=B8rnskov?= Date: Tue, 8 Nov 2011 11:51:01 +0100 Subject: [PATCH] Rename HelpCommand to AboutCommand Because of the native Symfony\Component\Console\Command\HelpCommand it is not possible to have a custom HelpCommand unless a lot of code is duplicated. Therefor change the HelpCommand to AboutCommand. --- .../Command/{HelpCommand.php => AboutCommand.php} | 8 ++++---- src/Composer/Console/Application.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/Composer/Command/{HelpCommand.php => AboutCommand.php} (84%) diff --git a/src/Composer/Command/HelpCommand.php b/src/Composer/Command/AboutCommand.php similarity index 84% rename from src/Composer/Command/HelpCommand.php rename to src/Composer/Command/AboutCommand.php index 1b2546f9e..9c6f27b91 100644 --- a/src/Composer/Command/HelpCommand.php +++ b/src/Composer/Command/AboutCommand.php @@ -18,15 +18,15 @@ use Symfony\Component\Console\Output\OutputInterface; /** * @author Jordi Boggiano */ -class HelpCommand extends Command +class AboutCommand extends Command { protected function configure() { $this - ->setName('help') - ->setDescription('') + ->setName('about') + ->setDescription('Short information about Composer') ->setHelp(<<php composer.phar help +php composer.phar about EOT ) ; diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 034845b91..a5fbbd6ad 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -63,7 +63,7 @@ class Application extends BaseApplication */ protected function registerCommands() { - $this->add(new Command\HelpCommand()); + $this->add(new Command\AboutCommand()); $this->add(new Command\InstallCommand()); $this->add(new Command\UpdateCommand()); $this->add(new Command\DebugPackagesCommand());