summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it.class b/it.class
index 41b9eb7..dabf74c 100644
--- a/it.class
+++ b/it.class
@@ -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;