HTML/FlexyFramework/Cli.php
authorAlan Knowles <alan@roojs.com>
Fri, 22 Jun 2018 04:18:25 +0000 (12:18 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 22 Jun 2018 04:18:25 +0000 (12:18 +0800)
HTML/FlexyFramework/Cli.php

index 2c8e755..714186c 100644 (file)
@@ -318,19 +318,19 @@ Available commands:
         
         
         $ret =  $newargs->getValues();
-            foreach($ret as $k=>$v) {
-                switch($k) {
-                    case 'pman-nodatabase':
-                        //echo "Turning off database";
-                        $this->ff->nodatabase= true;
-                        
-                        break;
+        foreach($ret as $k=>$v) {
+            switch($k) {
+                case 'pman-nodatabase':
+                    //echo "Turning off database";
+                    $this->ff->nodatabase= true;
                     
-                    default:
-                        die("need to fix option $k");
-                }
+                    break;
                 
+                default:
+                    die("need to fix option $k");
             }
+            
+        }
         return false;
         
     }