summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-08-28 09:48:10 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-08-28 09:48:18 -0500
commit6101d6276bceb8bf0f687a3fdb5cbae3847e8598 (patch)
tree112988ed94722486eeb4d8520b74cf89b2a96363 /lib/bundler/cli.rb
parent616394788ededa17409ec893d8befe9f683b54fb (diff)
downloadbundler-6101d6276bceb8bf0f687a3fdb5cbae3847e8598.tar.gz
Completely remove the package --all option on 2.0 and force its behaviorseg-bundler-2-defaults
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 954e19b530..69bb5f0ac3 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -348,8 +348,10 @@ module Bundler
map %w[cache] => :package
else
desc "cache [OPTIONS]", "Cache all the gems to vendor/cache", :hide => true
- method_option "all", :type => :boolean, :default => Bundler.feature_flag.cache_command_is_package? || nil,
- :banner => "Include all sources (including path and git)."
+ unless Bundler.feature_flag.cache_command_is_package?
+ method_option "all", :type => :boolean,
+ :banner => "Include all sources (including path and git)."
+ end
method_option "all-platforms", :type => :boolean, :banner => "Include gems for all platforms present in the lockfile, not only the current one"
method_option "no-prune", :type => :boolean, :banner => "Don't remove stale gems from the cache."
def cache
@@ -359,8 +361,10 @@ 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"
- method_option "all", :type => :boolean, :default => Bundler.feature_flag.cache_command_is_package? || nil,
- :banner => "Include all sources (including path and git)."
+ unless Bundler.feature_flag.cache_command_is_package?
+ method_option "all", :type => :boolean,
+ :banner => "Include all sources (including path and git)."
+ end
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)."