projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e396e3
)
Console/Getopt.php
author
benny
<benny@roojs.com>
Wed, 18 Jul 2018 03:56:09 +0000
(11:56 +0800)
committer
benny
<benny@roojs.com>
Wed, 18 Jul 2018 03:56:09 +0000
(11:56 +0800)
Console/Getopt.php
patch
|
blob
|
history
diff --git
a/Console/Getopt.php
b/Console/Getopt.php
index
fef566e
..
12ee2a1
100644
(file)
--- a/
Console/Getopt.php
+++ b/
Console/Getopt.php
@@
-215,7
+215,7
@@
class Console_Getopt
$opts[] = array($opt, substr($arg, $i + 1));
break;
//}else if (list(, $opt_arg) = each($args)) {
- } else if (foreach($args as
'' => $opt_arg)
)) {
+ } else if (foreach($args as
$opt_arg
)) {
/* Else use the next argument. */;
if (Console_Getopt::_isShortOpt($opt_arg)
|| Console_Getopt::_isLongOpt($opt_arg)) {