HTML/FlexyFramework/Cli.php
authorAlan Knowles <alan@roojs.com>
Thu, 25 Oct 2018 04:15:28 +0000 (12:15 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 25 Oct 2018 04:15:28 +0000 (12:15 +0800)
HTML/FlexyFramework/Cli.php

index 4208494..1b863d3 100644 (file)
@@ -304,6 +304,16 @@ Available commands:
         
         $newargs = Console_Getargs::factory($val, $ar);
         
+        // we need to read our 'special arguments' here - otherwise other arguments, cause getargs to fail
+        switch (true) {
+            case in_array('--pman-nodatabase', $ar):
+                echo "Turning off database\n";
+                $this->ff->nodatabase= true;
+                    
+                break;
+        }
+        
+        
         
         if (is_a($newargs, 'PEAR_Error')) {
             list($optional, $required, $params) = Console_Getargs::getOptionalRequired($val);