{"record":{"id":"ac6a3090dbfbd93e","repo":"ruby/rubygems","slug":"the-binstubs-option-has-been-removed-in-favor-of","errorCode":null,"errorMessage":"The --binstubs option has been removed in favor of `bundle binstubs --all`","messagePattern":"The --binstubs option has been removed in favor of `bundle binstubs --all`","errorType":"validation","errorClass":"InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli.rb","lineNumber":289,"sourceCode":"    method_option \"standalone\", type: :array, lazy_default: [], banner: \"Make a bundle that can work without the Bundler runtime\"\n    method_option \"system\", type: :boolean, banner: \"Install to the system location ($BUNDLE_PATH or $GEM_HOME) even if the bundle was previously installed somewhere else for this application (removed)\"\n    method_option \"trust-policy\", alias: \"P\", type: :string, banner: \"Gem trust policy (like gem install -P). Must be one of #{Bundler.rubygems.security_policy_keys.join(\"|\")}\"\n    method_option \"target-rbconfig\", type: :string, banner: \"Path to rbconfig.rb for the deployment target platform\"\n    method_option \"without\", type: :array, banner: \"Exclude gems that are part of the specified named group (removed).\"\n    method_option \"with\", type: :array, banner: \"Include gems that are part of the specified named group (removed).\"\n    method_option \"cooldown\", type: :numeric, banner: \"Only consider gem versions published at least N days ago. Use 0 to disable.\"\n    def install\n      %w[clean deployment frozen no-prune path shebang without with].each do |option|\n        remembered_flag_deprecation(option)\n      end\n\n      print_remembered_flag_deprecation(\"--system\", \"path.system\", \"true\") if ARGV.include?(\"--system\")\n\n      remembered_flag_deprecation(\"deployment\", negative: true)\n\n      if ARGV.include?(\"--binstubs\")\n        removed_message = \"The --binstubs option has been removed in favor of `bundle binstubs --all`\"\n        raise InvalidOption, removed_message\n      end\n\n      require_relative \"cli/install\"\n      options = self.options.dup\n      options[\"lockfile\"] ||= ENV[\"BUNDLE_LOCKFILE\"]\n      Bundler.settings.temporary(no_install: false) do\n        Install.new(options).run\n      end\n    rescue GemfileNotFound => error\n      invoke_other_command(\"cli_help\")\n      raise error # re-raise to show the error and get a failing exit status\n    end\n\n    map aliases_for(\"install\")\n\n    desc \"update [OPTIONS]\", \"Update the current environment\"\n    long_desc <<-D\n      Update will install the newest versions of the gems listed in the Gemfile. Use","sourceCodeStart":271,"sourceCodeEnd":307,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli.rb#L271-L307","documentation":"Error \"The --binstubs option has been removed in favor of `bundle binstubs --all`\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli.rb:289 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"}