class RuboCop::Options
def add_flags_with_optional_args(opts)
def add_flags_with_optional_args(opts) option(opts, '--show-cops [COP1,COP2,...]') do |list| @options[:show_cops] = list.nil? ? [] : list.split(',') end end
def add_flags_with_optional_args(opts) option(opts, '--show-cops [COP1,COP2,...]') do |list| @options[:show_cops] = list.nil? ? [] : list.split(',') end end