cvs: php4 /pear/Console Getopt.php
| From: | Thomas V.V.Cox | Date: | Wed, 26 Dec 2001 03:58:44 +0000 |
| Subject: | cvs: php4 /pear/Console Getopt.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1695@lists.php.net to get a copy of this message | ||
cox Tue Dec 25 22:58:44 2001 EDT
Modified files:
/php4/pear/Console Getopt.php
Log:
reverted the last change for now
Index: php4/pear/Console/Getopt.php
diff -u php4/pear/Console/Getopt.php:1.8 php4/pear/Console/Getopt.php:1.9
--- php4/pear/Console/Getopt.php:1.8 Tue Dec 11 10:31:13 2001
+++ php4/pear/Console/Getopt.php Tue Dec 25 22:58:44 2001
@@ -17,7 +17,7 @@
// | Authors: Andrei Zmievski <andrei@ispi.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Getopt.php,v 1.8 2001/12/11 15:31:13 sebastian Exp $
+// $Id: Getopt.php,v 1.9 2001/12/26 03:58:44 cox Exp $
require_once 'PEAR.php';
@@ -86,10 +86,10 @@
}
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;