summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-19 19:23:19 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-12 13:27:29 +0100
commit51ae7d03d37d3bdb4e8e5312321b284fabf5d13b (patch)
treefa2cbe3051480e7cbf6767a02d1476d2c73c2d91
parent8e5110bd832df727779b3532f557cce84c07cd14 (diff)
downloadbundler-51ae7d03d37d3bdb4e8e5312321b284fabf5d13b.tar.gz
Teach users how to toggle deprecations off
The deprecations will lead to some "true positives" where users will use `bundle config` and remove the flag, and some "false positives" where users will be fine with the option not being remembered but still want to use the flag on a per command basis. Whatever the case, we need to tell users how to get rid of the warning once they learn and get ready for the new behavior. Otherwise it's going to get super annoying!
-rw-r--r--lib/bundler/settings.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index bed5c5604e..f8ee6fe3db 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -120,7 +120,9 @@ module Bundler
"flags passed to commands " \
"will no longer be automatically remembered. Instead please set flags " \
"you want remembered between commands using `bundle config set " \
- "<setting name> <setting value>`, i.e. `#{command}`"
+ "<setting name> <setting value>`, i.e. `#{command}`. Once you are " \
+ "ready for the new behavior, use `bundle config set forget_cli_options " \
+ "true` to get rid of this message"
set_local(key, value)
end