class Bundler::Thor::Options
def names_to_switch_names(names = [])
def names_to_switch_names(names = []) @switches.map do |_, o| if names.include? o.name o.respond_to?(:switch_name) ? o.switch_name : o.human_name else nil end end.compact end
def names_to_switch_names(names = []) @switches.map do |_, o| if names.include? o.name o.respond_to?(:switch_name) ? o.switch_name : o.human_name else nil end end.compact end