summaryrefslogtreecommitdiff
path: root/pear/Console
diff options
context:
space:
mode:
Diffstat (limited to 'pear/Console')
-rw-r--r--pear/Console/Getopt.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php
index 964421943f..15fe9efe34 100644
--- a/pear/Console/Getopt.php
+++ b/pear/Console/Getopt.php
@@ -82,6 +82,7 @@ class Console_Getopt {
}
if (isset($args[0]{0}) && $args[0]{0} != '-') {
array_shift($args);
+ $args = array_values($args);
}
reset($args);
while (list($i, $arg) = each($args)) {