Fixing missing parameter.

This commit is contained in:
mark_story 2010-10-23 00:36:40 -04:00
parent e6ab0e22c7
commit b22da5a3d1

View file

@ -339,7 +339,7 @@ class Shell extends Object {
$this->command = $command;
if (!empty($this->params['help'])) {
return $this->_displayHelp();
return $this->_displayHelp($command);
}
if (($isTask || $isMethod || $isMain) && $command !== 'execute' ) {
@ -364,7 +364,7 @@ class Shell extends Object {
*
* @return void
*/
protected function _displayHelp() {
protected function _displayHelp($command) {
$format = 'text';
if (!empty($this->args[0]) && $this->args[0] == 'xml') {
$format = 'xml';