From 51ae7d03d37d3bdb4e8e5312321b284fabf5d13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 19 Feb 2019 19:23:19 +0100 Subject: 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! --- lib/bundler/settings.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 " \ - " `, i.e. `#{command}`" + " `, 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 -- cgit v1.2.1