diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-15 19:31:51 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:58 +0900 |
commit | f73020d493ec2bf7c79fc118f83f328caee701d7 (patch) | |
tree | b1b8640cc516c887a267fa7c2cb42c639f684701 /lib/bundler/cli.rb | |
parent | 33ce42dd5dd10cb86258e78010563f86f412ce01 (diff) |
[bundler/bundler] 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.
https://github.com/bundler/bundler/commit/eca1757792
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 7 |
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)." |