]> granicus.if.org Git - php/commitdiff
reverted the last change for now
authorTomas V.V.Cox <cox@php.net>
Wed, 26 Dec 2001 03:58:44 +0000 (03:58 +0000)
committerTomas V.V.Cox <cox@php.net>
Wed, 26 Dec 2001 03:58:44 +0000 (03:58 +0000)
pear/Console/Getopt.php

index 7b30c456be43a32d85fa58b5e901df59ed60a767..994492ae3a1351c222fcf90e128c83daa469a677 100644 (file)
@@ -86,10 +86,10 @@ class Console_Getopt {
             }
 
             if ($arg{0} != '-' || (strlen($arg) > 1 && $arg{1} == '-' && !$long_options)) {
-                //$non_opts[] = $arg;
-                $non_opts = array_merge($non_opts, array_slice($args, $i));
-                break;
-            } else if (strlen($arg) > 1 && $arg{1} == '-') {
+                $non_opts[] = $arg;
+                //$non_opts = array_merge($non_opts, array_slice($args, $i));
+                //break;
+            } elseif (strlen($arg) > 1 && $arg{1} == '-') {
                 $error = Console_Getopt::_parseLongOption(substr($arg, 2), $long_options, $opts, $args);
                 if (PEAR::isError($error))
                     return $error;