summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index ab56894..d64559c 100644
--- a/it.class
+++ b/it.class
@@ -518,7 +518,7 @@ function getopt($helplines)
$witharg[$longoptname ? $longoptname : $shortoptname] = $longoptarg || $shortoptarg;
}
}
- $witharg['debug'] = 1;
+ $witharg['debug'] = true;
$mandatoryargs = array();
if ($tmp = trim(it::replace(array("\n.*" => "", "^\S+\s+\S+\s*" => "", "\[.*?\]\s*" => ""), trim($helplines))))
@@ -533,7 +533,7 @@ function getopt($helplines)
else
$result[array_shift($eat)] = $arg;
}
- elseif ($matches = (array)it::match('^--(\w[\w-]*)(=\S*)?', $arg))
+ elseif ($matches = (array)it::match('^--(\w[\w-]*)(=.*)?', $arg))
{
list($optname, $val) = $matches;
if (!isset($witharg[$optname]) || isset($val) && !$witharg[$optname])