Browse Source

Set shell command 'main' before running startUp

Andreas Kristiansen 10 years ago
parent
commit
d2a058f665
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Console/Shell.php

+ 1 - 1
src/Console/Shell.php

@@ -443,8 +443,8 @@ class Shell
         }
 
         if ($this->hasMethod('main')) {
-            $this->startup();
             $this->command = 'main';
+            $this->startup();
             return call_user_func_array([$this, 'main'], $this->args);
         }