浏览代码

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

Fabien Potencier 15 年之前
父节点
当前提交
a40f48ce39
共有 1 个文件被更改,包括 1 次插入0 次删除
  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: