{"record":{"id":"b5cac6b3273967aa","repo":"ruby/rubygems","slug":"the-outdated-flag-to-bundle-show-has-been-re","errorCode":null,"errorMessage":"the `--outdated` flag to `bundle show` has been removed in favor of `bundle show --verbose`","messagePattern":"the `--outdated` flag to `bundle show` has been removed in favor of `bundle show --verbose`","errorType":"validation","errorClass":"InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli.rb","lineNumber":346,"sourceCode":"    method_option \"cooldown\", type: :numeric, banner: \"Only consider gem versions published at least N days ago. Use 0 to disable.\"\n    def update(*gems)\n      require_relative \"cli/update\"\n      Bundler.settings.temporary(no_install: false) do\n        Update.new(options, gems).run\n      end\n    end\n\n    desc \"show GEM [OPTIONS]\", \"Shows all gems that are part of the bundle, or the path to a given gem\"\n    long_desc <<-D\n      Show lists the names and versions of all gems that are required by your Gemfile.\n      Calling show with [GEM] will list the exact location of that gem on your machine.\n    D\n    method_option \"paths\", type: :boolean, banner: \"List the paths of all gems that are required by your Gemfile.\"\n    method_option \"outdated\", type: :boolean, banner: \"Show verbose output including whether gems are outdated (removed).\"\n    def show(gem_name = nil)\n      if ARGV.include?(\"--outdated\")\n        removed_message = \"the `--outdated` flag to `bundle show` has been removed in favor of `bundle show --verbose`\"\n        raise InvalidOption, removed_message\n      end\n      require_relative \"cli/show\"\n      Show.new(options, gem_name).run\n    end\n\n    desc \"list\", \"List all gems in the bundle\"\n    method_option \"name-only\", type: :boolean, banner: \"print only the gem names\"\n    method_option \"only-group\", type: :array, default: [], banner: \"print gems from a given set of groups\"\n    method_option \"without-group\", type: :array, default: [], banner: \"print all gems except from a given set of groups\"\n    method_option \"format\", type: :string, banner: \"format output ('json' is the only supported format)\"\n    method_option \"paths\", type: :boolean, banner: \"print the path to each gem in the bundle\"\n    def list\n      require_relative \"cli/list\"\n      List.new(options).run\n    end\n\n    map aliases_for(\"list\")\n","sourceCodeStart":328,"sourceCodeEnd":364,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli.rb#L328-L364","documentation":"Error \"the `--outdated` flag to `bundle show` has been removed in favor of `bundle show --verbose`\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli.rb:346 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}