reverted the last change for now

This commit is contained in:
Tomas V.V.Cox 2001-12-26 03:58:44 +00:00
parent a8f7a57e97
commit 09dba8cf28

View file

@ -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;