summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-15 19:31:51 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-15 20:39:56 +0200
commiteca1757792c2ef7821d96e60ada7b30107f6d73b (patch)
treeec3b0edff958d3dea2bfa2606d91d5f82d144c5d
parent4df9edef95d3aff0e932daf6050d47ecd2420759 (diff)
downloadbundler-eca1757792c2ef7821d96e60ada7b30107f6d73b.tar.gz
Always keep `bundle package --all` option
Just change the default. The reason to do this is that the deprecation message talks about the default being changed, not the option being removed.
-rw-r--r--lib/bundler/cli.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index ef818e12e9..0955bcd5c2 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -425,10 +425,9 @@ module Bundler
end
desc "#{Bundler.feature_flag.cache_command_is_package? ? :cache : :package} [OPTIONS]", "Locks and then caches all of the gems into vendor/cache"
- unless Bundler.feature_flag.cache_all?
- method_option "all", :type => :boolean,
- :banner => "Include all sources (including path and git)."
- end
+ method_option "all", :type => :boolean,
+ :default => Bundler.feature_flag.cache_all?,
+ :banner => "Include all sources (including path and git)."
method_option "all-platforms", :type => :boolean, :banner => "Include gems for all platforms present in the lockfile, not only the current one"
method_option "cache-path", :type => :string, :banner =>
"Specify a different cache path than the default (vendor/cache)."