Method: Minitest.plugin_log_level_options

Defined in:
lib/minitest/log_level_plugin.rb

.plugin_log_level_options(opts, options) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/minitest/log_level_plugin.rb', line 28

def self.plugin_log_level_options(opts, options)
  opts.on(
    '-l', '--log-level LEVEL', LEVEL_ALIASES,
    'Configure logging level for tests',
    "(#{LEVEL_ALIASES.keys.join(', ')})"
  ) do |level|
    options[:log_level] = level
  end
end