summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2016-09-27 17:42:59 +0200
committerUrban Müller2016-09-27 17:42:59 +0200
commit86e59adbac6783c9c5af386aeb1f48b9ef1575cb (patch)
treee06ca904a53c194afed6d42c6dc980dc293db617 /it.class
parent0ebc8f38cf00294136e61fde87aa942fc64c3666 (diff)
downloaditools-86e59adbac6783c9c5af386aeb1f48b9ef1575cb.tar.gz
itools-86e59adbac6783c9c5af386aeb1f48b9ef1575cb.tar.bz2
itools-86e59adbac6783c9c5af386aeb1f48b9ef1575cb.zip
require : after default so "default" can be default
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index f63c3e0..7e32c4b 100644
--- a/it.class
+++ b/it.class
@@ -771,7 +771,7 @@ static function getopt($usage, $p = array())
if (($default = it::match('\[(.*)\]\s*$', $usageline)) !== null)
{
if ($longoptarg || $shortoptarg)
- $defaults[$longoptname ? $longoptname : $shortoptname] = it::replace(array('^default:?\s*' => ""), trim($default));
+ $defaults[$longoptname ? $longoptname : $shortoptname] = it::replace(array('^default:\s*' => ""), trim($default));
else if (($longoptname || $shortoptname) && it::match('^\w+$', $default))
it::error('defaults for boolean arguments not supported!');
}