瀏覽代碼

Improve global command to support short command resolution

Jordi Boggiano 11 年之前
父節點
當前提交
c2dc433fa4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Command/GlobalCommand.php

+ 1 - 1
src/Composer/Command/GlobalCommand.php

@@ -74,6 +74,6 @@ EOT
         // create new input without "global" command prefix
         $input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1));
 
-        return $this->getApplication()->get($args[1])->run($input, $output);
+        return $this->getApplication()->run($input, $output);
     }
 }