1
0
Fork 0

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.
pull/103/head
Henrik Bjørnskov 2011-11-08 11:51:01 +01:00
parent f85a31e2b0
commit 25fa4ec60c
2 changed files with 5 additions and 5 deletions

View File

@ -18,15 +18,15 @@ use Symfony\Component\Console\Output\OutputInterface;
/**
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
class HelpCommand extends Command
class AboutCommand extends Command
{
protected function configure()
{
$this
->setName('help')
->setDescription('')
->setName('about')
->setDescription('Short information about Composer')
->setHelp(<<<EOT
<info>php composer.phar help</info>
<info>php composer.phar about</info>
EOT
)
;

View File

@ -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());