From a3d2fd336cf7e2934b4ce8654390ad1947921220 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Fri, 5 Dec 2003 22:02:48 +0000 Subject: [PATCH] MFB --- pear/Console/Getopt.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php index 9bc48c1480..133a5bf313 100644 --- a/pear/Console/Getopt.php +++ b/pear/Console/Getopt.php @@ -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)) { -- 2.50.1