diff --git a/src/Console/Shell.php b/src/Console/Shell.php index 07c961ab3f2..6da26422f4f 100644 --- a/src/Console/Shell.php +++ b/src/Console/Shell.php @@ -443,8 +443,8 @@ public function runCommand($argv, $autoMethod = false, $extra = []) } if ($this->hasMethod('main')) { - $this->startup(); $this->command = 'main'; + $this->startup(); return call_user_func_array([$this, 'main'], $this->args); }