diff options
author | Christian Schneider | 2007-10-13 16:17:17 +0000 |
---|---|---|
committer | Christian Schneider | 2007-10-13 16:17:17 +0000 |
commit | d65e5b9ed94a8cdf5d2ad8ad4bfb8c792c631acd (patch) | |
tree | 89eba55d31bd24e6604a8a7f68c0eb7f422feae7 /it.class | |
parent | 7ada6ffc7f0bc02f9f9a9484cf30517a8cf6431c (diff) | |
download | itools-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.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |