class Bundler::CLI::Install

def normalize_groups

def normalize_groups
  Bundler.settings.with    = [] if options[:with] && options[:with].empty?
  Bundler.settings.without = [] if options[:without] && options[:without].empty?
  with = options.fetch("with", [])
  with |= Bundler.settings.with.map(&:to_s)
  with -= options[:without] if options[:without]
  without = options.fetch("without", [])
  without |= Bundler.settings.without.map(&:to_s)
  without -= options[:with] if options[:with]
  options[:with]    = with
  options[:without] = without
end