Method: Bundler::CLI#show

Defined in:
lib/bundler/cli.rb

#show(gem_name = nil) ⇒ Object


291
292
293
294
295
296
297
298
299
# File 'lib/bundler/cli.rb', line 291

def show(gem_name = nil)
  if ARGV.include?("--outdated")
    message = "the `--outdated` flag to `bundle show` was undocumented and will be removed without replacement"
    removed_message = "the `--outdated` flag to `bundle show` was undocumented and has been removed without replacement"
    SharedHelpers.major_deprecation(2, message, removed_message: removed_message)
  end
  require_relative "cli/show"
  Show.new(options, gem_name).run
end