mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing missing parameter.
This commit is contained in:
parent
e6ab0e22c7
commit
b22da5a3d1
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue