]> granicus.if.org Git - php/commitdiff
MFB
authorAndrei Zmievski <andrei@php.net>
Fri, 5 Dec 2003 22:02:48 +0000 (22:02 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 5 Dec 2003 22:02:48 +0000 (22:02 +0000)
pear/Console/Getopt.php

index 9bc48c14801d5c27209cc4115fb394f5f259543b..133a5bf3134ea213ba9a110fc7a319dc08aadb8a 100644 (file)
@@ -80,9 +80,7 @@ class Console_Getopt {
         if ($long_options) {
             sort($long_options);
         }
-        if (isset($args[0]{0}) && $args[0]{0} != '-') {
-            array_shift($args);
-        }
+
         reset($args);
         while (list($i, $arg) = each($args)) {