diff options
author | Urban Müller | 2016-09-27 17:42:59 +0200 |
---|---|---|
committer | Urban Müller | 2016-09-27 17:42:59 +0200 |
commit | 86e59adbac6783c9c5af386aeb1f48b9ef1575cb (patch) | |
tree | e06ca904a53c194afed6d42c6dc980dc293db617 /it.class | |
parent | 0ebc8f38cf00294136e61fde87aa942fc64c3666 (diff) | |
download | itools-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.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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!'); } |