class 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?
    ["true", "TRUE", "t", "T", true].include?(shift)
  else
    @switches.key?(switch) || !no_or_skip?(switch)
  end
end