summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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!');
}