class Bundler::CLI::Install

def normalize_groups

def normalize_groups
  options[:with] &&= options[:with].join(":").tr(" ", ":").split(":")
  options[:without] &&= options[:without].join(":").tr(" ", ":").split(":")
  check_for_group_conflicts_in_cli_options
  Bundler.settings.set_command_option :with, nil if options[:with] == []
  Bundler.settings.set_command_option :without, nil if options[:without] == []
  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