summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederico Bittencourt <fred.rbittencourt@gmail.com>2016-10-15 15:21:12 -0300
committerFrederico Bittencourt <fred.rbittencourt@gmail.com>2016-10-15 15:21:12 -0300
commit76fefd5d3f90b2e17cafca374ea877048ac718ea (patch)
treef10e9d388e479a589b26f6c0b78b3d333e1ac186
parent4f8ba09e13fb65808d8cf11fb54942b65bf0e428 (diff)
downloadbundler-76fefd5d3f90b2e17cafca374ea877048ac718ea.tar.gz
show deprecated warning on bundle show --outdated
-rw-r--r--lib/bundler/cli/show.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/cli/show.rb b/lib/bundler/cli/show.rb
index 77e845a603..a8e2cacd6d 100644
--- a/lib/bundler/cli/show.rb
+++ b/lib/bundler/cli/show.rb
@@ -17,6 +17,10 @@ module Bundler
Bundler.load.lock
end
+ if options[:outdated]
+ Bundler.ui.warn("Deprecated: use `bundle info GEM` or `bundle outdated` instead of `bundle show --outdated`")
+ end
+
if gem_name
if gem_name == "bundler"
path = File.expand_path("../../../..", __FILE__)