lib/bolt/bolt_option_parser.rb in bolt-2.18.0 vs lib/bolt/bolt_option_parser.rb in bolt-2.19.0

- old
+ new

@@ -592,17 +592,17 @@ bolt task show Display documentation for the canary task bolt task show canary HELP - attr_reader :warnings + attr_reader :deprecations def initialize(options) super() @options = options - @warnings = [] + @deprecations = [] separator "\nINVENTORY OPTIONS" define('-t', '--targets TARGETS', 'Identifies the targets of command.', 'Enter a comma-separated list of target URIs or group names.', @@ -807,10 +807,11 @@ end define('--debug', 'Display debug logging') do |_| @options[:debug] = true # We don't actually set '--log-level debug' here, but once the options are evaluated by # the config class the end result is the same. - @warnings << { msg: "Command line option '--debug' is deprecated, set '--log-level debug' instead." } + msg = "Command line option '--debug' is deprecated, set '--log-level debug' instead." + @deprecations << { type: 'Using --debug instead of --log-level debug', msg: msg } end define('--log-level LEVEL', "Set the log level for the console. Available options are", "debug, info, notice, warn, error, fatal, any.") do |level| @options[:log] = { 'console' => { 'level' => level } }