set_command_option(key, value)public
No documentation available.
# File lib/bundler/settings.rb, line 104
def set_command_option(key, value)
if Bundler.feature_flag.forget_cli_options?
temporary(key => value)
value
else
command = if value.nil?
"bundle config --delete #{key}"
else
"bundle config #{key} #{Array(value).join(":")}"
end
Bundler::SharedHelpers.major_deprecation 2, "flags passed to commands " "will no longer be automatically remembered. Instead please set flags " "you want remembered between commands using `bundle config " "<setting name> <setting value>`, i.e. `#{command}`"
set_local(key, value)
end
end