From d65e5b9ed94a8cdf5d2ad8ad4bfb8c792c631acd Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Sat, 13 Oct 2007 16:17:17 +0000 Subject: Support option value to be array to repeat option (e.g. --header for wget) --- it.class | 4 ++-- 1 file 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 -- cgit v1.2.3