]> granicus.if.org Git - php/commitdiff
Fix long option parsing.
authorAndrei Zmievski <andrei@php.net>
Tue, 29 May 2001 16:18:35 +0000 (16:18 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 29 May 2001 16:18:35 +0000 (16:18 +0000)
pear/Console/Getopt.php

index e8f04165a0fa7dab9bda5141c3b90ef9f79da226..b116b2077755946cc7041fb37c39b9689b1003dd 100644 (file)
@@ -180,7 +180,7 @@ class Console_Getopt {
                 return new Getopt_Error("option --$opt doesn't allow an argument\n");
             }
 
-            $opts[] = array('--' . substr($long_opt, 0, strpos($long_opt, '=')), $opt_arg);
+            $opts[] = array('--' . $opt, $opt_arg);
             return;
         }