method

_cleanup_options_and_set

_cleanup_options_and_set(options, key)
protected

No documentation available.

# File lib/bundler/vendor/thor/lib/thor/actions.rb, line 310
    def _cleanup_options_and_set(options, key) #:nodoc:
      case options
      when Array
        %(--force -f --skip -s).each { |i| options.delete(i) }
        options << "--#{key}"
      when Hash
        [:force, :skip, "force", "skip"].each { |i| options.delete(i) }
        options.merge!(key => true)
      end
    end