diff options
-rw-r--r-- | it.class | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -903,7 +903,9 @@ static function getopt($usage, $p = array()) foreach (explode("\n", trim(chunk_split($letters, 1, "\n"))) as $letter) { $optname = $alias[$letter] ? $alias[$letter] : $letter; - if ($witharg[$optname]) + if ($witharg[$optname] && it::match('=', $arg)) + $result[$optname] = it::match('=(.*)', $arg); + else if ($witharg[$optname]) $eat[] = $optname; else if (!isset($witharg[$optname])) $err = true; |