ruby/rubygems · error · InvalidOption

the `--outdated` flag to `bundle show` has been removed in f

Error message

the `--outdated` flag to `bundle show` has been removed in favor of `bundle show --verbose`

What it means

Error "the `--outdated` flag to `bundle show` has been removed in favor of `bundle show --verbose`" thrown in ruby/rubygems.

Source

Thrown at lib/bundler/cli.rb:346

    method_option "cooldown", type: :numeric, banner: "Only consider gem versions published at least N days ago. Use 0 to disable."
    def update(*gems)
      require_relative "cli/update"
      Bundler.settings.temporary(no_install: false) do
        Update.new(options, gems).run
      end
    end

    desc "show GEM [OPTIONS]", "Shows all gems that are part of the bundle, or the path to a given gem"
    long_desc <<-D
      Show lists the names and versions of all gems that are required by your Gemfile.
      Calling show with [GEM] will list the exact location of that gem on your machine.
    D
    method_option "paths", type: :boolean, banner: "List the paths of all gems that are required by your Gemfile."
    method_option "outdated", type: :boolean, banner: "Show verbose output including whether gems are outdated (removed)."
    def show(gem_name = nil)
      if ARGV.include?("--outdated")
        removed_message = "the `--outdated` flag to `bundle show` has been removed in favor of `bundle show --verbose`"
        raise InvalidOption, removed_message
      end
      require_relative "cli/show"
      Show.new(options, gem_name).run
    end

    desc "list", "List all gems in the bundle"
    method_option "name-only", type: :boolean, banner: "print only the gem names"
    method_option "only-group", type: :array, default: [], banner: "print gems from a given set of groups"
    method_option "without-group", type: :array, default: [], banner: "print all gems except from a given set of groups"
    method_option "format", type: :string, banner: "format output ('json' is the only supported format)"
    method_option "paths", type: :boolean, banner: "print the path to each gem in the bundle"
    def list
      require_relative "cli/list"
      List.new(options).run
    end

    map aliases_for("list")

View on GitHub (pinned to 86cbb817a3)

When it happens

Trigger: Thrown at lib/bundler/cli.rb:346 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23). Data as JSON: /api/errors/b5cac6b3273967aa. Report an issue: GitHub.