summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2007-10-13 16:17:17 +0000
committerChristian Schneider2007-10-13 16:17:17 +0000
commitd65e5b9ed94a8cdf5d2ad8ad4bfb8c792c631acd (patch)
tree89eba55d31bd24e6604a8a7f68c0eb7f422feae7 /it.class
parent7ada6ffc7f0bc02f9f9a9484cf30517a8cf6431c (diff)
downloaditools-d65e5b9ed94a8cdf5d2ad8ad4bfb8c792c631acd.tar.gz
itools-d65e5b9ed94a8cdf5d2ad8ad4bfb8c792c631acd.tar.bz2
itools-d65e5b9ed94a8cdf5d2ad8ad4bfb8c792c631acd.zip
Support option value to be array to repeat option (e.g. --header for wget)
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 07398f3..7c6daf3 100644
--- a/it.class
+++ b/it.class
@@ -393,8 +393,8 @@ function exec(/* $cmd, $values1 = array(), ... */)
{
if ($value === true || $value === false || $value === null)
$parts[] = $value ? $key : "";
- else
- $parts[] = "$key " . it::_exec_quotevalue($value);
+ else foreach ((array)$value as $val)
+ $parts[] = "$key " . it::_exec_quotevalue($val);
}
}
else