summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2017-01-05 21:56:14 +1100
committerColby Swandale <colby@taplaboratories.com>2017-01-05 21:56:14 +1100
commitd35414b86f8818c422d720730aada2f1377b8b95 (patch)
treebf5badacac9d611a791af688ff7fa87ad2e5b3b0
parent0f5fe69ec8ae8fdc0c7c8219b0fe830f0a306ffd (diff)
downloadbundler-d35414b86f8818c422d720730aada2f1377b8b95.tar.gz
move parseable functionality down a bit and only when no args are given
-rw-r--r--lib/bundler/cli/config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/config.rb b/lib/bundler/cli/config.rb
index cf50f12fb3..0b8d2146bf 100644
--- a/lib/bundler/cli/config.rb
+++ b/lib/bundler/cli/config.rb
@@ -21,8 +21,6 @@ module Bundler
return
end
- return Bundler.ui.info(Bundler.settings[name]) if options[:parseable]
-
unless valid_scope?(scope)
Bundler.ui.error "Invalid scope --#{scope} given. Please use --local or --global."
exit 1
@@ -34,6 +32,8 @@ module Bundler
return
end
+ return Bundler.ui.info(Bundler.settings[name]) if options[:parseable] && args.empty?
+
if args.empty?
confirm(name)
return