Browse Source

shows the version even when $shellList is empty.

alysson 10 years ago
parent
commit
08e51e1289
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/Shell/CommandListShell.php

+ 4 - 4
src/Shell/CommandListShell.php

@@ -64,13 +64,13 @@ class CommandListShell extends Shell
             $this->out("<info>Available Shells:</info>", 2);
         }
 
-        $shellList = $this->Command->getShellList();
-        if (empty($shellList)) {
+        if (!empty($this->params['version'])) {
+            $this->out(Configure::version());
             return;
         }
 
-        if (!empty($this->params['version'])) {
-            $this->out(Configure::version());
+        $shellList = $this->Command->getShellList();
+        if (empty($shellList)) {
             return;
         }