class Closure::Compiler

def serialize_options(options)

Serialize hash options to the command-line format.
def serialize_options(options)
  options.map do |k, v|
    if (v.is_a?(Array))
      v.map {|v2| ["--#{k}", v2.to_s]}
    else
      ["--#{k}", v.to_s]
    end
  end.flatten
end