Browse Source

[Console] added ? as an alias for the help command

Fabien Potencier 15 years ago
parent
commit
a40f48ce39
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Symfony/Components/Console/Command/HelpCommand.php

+ 1 - 0
src/Symfony/Components/Console/Command/HelpCommand.php

@@ -42,6 +42,7 @@ class HelpCommand extends Command
         new InputOption('xml', null, InputOption::PARAMETER_NONE, 'To output help as XML'),
       ))
       ->setName('help')
+      ->setAliases(array('?'))
       ->setDescription('Displays help for a command')
       ->setHelp(<<<EOF
 The <info>help</info> command displays help for a given command: