diff options
author | Tomas V.V.Cox <cox@php.net> | 2001-12-26 03:58:44 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2001-12-26 03:58:44 +0000 |
commit | 09dba8cf284b45b5cc6210c0ca8d6cae3df429f4 (patch) | |
tree | 0bb89398208b7bc7eaa272504970a18a625a47f8 | |
parent | a8f7a57e97e29ae267f001debc23626ba6742244 (diff) | |
download | php-git-09dba8cf284b45b5cc6210c0ca8d6cae3df429f4.tar.gz |
reverted the last change for now
-rw-r--r-- | pear/Console/Getopt.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php index 7b30c456be..994492ae3a 100644 --- a/pear/Console/Getopt.php +++ b/pear/Console/Getopt.php @@ -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; |