summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index d889c32bf4..ca07591bc9 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -198,6 +198,9 @@ module Bundler
method_option "outdated", :type => :boolean,
:banner => "Show verbose output including whether gems are outdated."
def show(gem_name = nil)
+ # TODO 2.0 remove `bundle list`
+ Bundler.ui.deprecate("`bundle list` is deprecated and will be removed in " \
+ "Bundler 2.0. Use `bundle show` instead.", true) if ARGV[0] == "list"
require "bundler/cli/show"
Show.new(options, gem_name).run
end