Skip to content

Commit

Permalink
Fixing missing parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 23, 2010
1 parent e6ab0e2 commit b22da5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/console/shells/shell.php
Expand Up @@ -339,7 +339,7 @@ public function runCommand($command, $argv) {
$this->command = $command;

if (!empty($this->params['help'])) {
return $this->_displayHelp();
return $this->_displayHelp($command);
}

if (($isTask || $isMethod || $isMain) && $command !== 'execute' ) {
Expand All @@ -364,7 +364,7 @@ public function runCommand($command, $argv) {
*
* @return void
*/
protected function _displayHelp() {
protected function _displayHelp($command) {
$format = 'text';
if (!empty($this->args[0]) && $this->args[0] == 'xml') {
$format = 'xml';
Expand Down

0 comments on commit b22da5a

Please sign in to comment.