Explorar o código

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

Fabien Potencier %!s(int64=15) %!d(string=hai) anos
pai
achega
a40f48ce39
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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'),
         new InputOption('xml', null, InputOption::PARAMETER_NONE, 'To output help as XML'),
       ))
       ))
       ->setName('help')
       ->setName('help')
+      ->setAliases(array('?'))
       ->setDescription('Displays help for a command')
       ->setDescription('Displays help for a command')
       ->setHelp(<<<EOF
       ->setHelp(<<<EOF
 The <info>help</info> command displays help for a given command:
 The <info>help</info> command displays help for a given command: