class Thor

def self.convert_task_options(opts)

def self.convert_task_options(opts)
  opts.map do |key, value|
    case value
    when true
      "--#{key}"
    when Array
      value.map {|v| "--#{key} #{v.inspect}"}.join(" ")
    when nil, false
      ""
    else
      "--#{key} #{value.inspect}"
    end
  end.join(" ")    
end