module Bundler::CLI::Common

def self.configure_gem_version_promoter(definition, options)

def self.configure_gem_version_promoter(definition, options)
  patch_level = patch_level_options(options)
  raise InvalidOption, "Provide only one of the following options: #{patch_level.join(", ")}" unless patch_level.length <= 1
  definition.gem_version_promoter.tap do |gvp|
    gvp.level = patch_level.first || :major
    gvp.strict = options[:strict] || options["update-strict"]
  end
end