class Bundler::Thor::Options

def parse_boolean(switch)


Parse boolean values which can be given as --foo=true, --foo or --no-foo.
def parse_boolean(switch)
  if current_is_value?
    if ["true", "TRUE", "t", "T", true].include?(peek)
      shift
      true
    elsif ["false", "FALSE", "f", "F", false].include?(peek)
      shift
      false
    else
      true
    end
  else
    @switches.key?(switch) || !no_or_skip?(switch)
  end
end