lib/rundock/cli.rb in rundock-1.1.6 vs lib/rundock/cli.rb in rundock-1.1.7

- old
+ new

@@ -10,18 +10,20 @@ class_option :log_level, type: :string, aliases: ['-l'], default: 'info' class_option :color, type: :boolean, default: true class_option :header, type: :boolean, default: true class_option :short_header, type: :boolean, default: false class_option :date_header, type: :boolean, default: true + class_option :suppress_logging, type: :boolean, default: false def initialize(args, opts, config) super(args, opts, config) Rundock::Logger.level = ::Logger.const_get(options[:log_level].upcase) Rundock::Logger.formatter.colored = options[:color] Rundock::Logger.formatter.show_header = options[:header] Rundock::Logger.formatter.short_header = options[:short_header] Rundock::Logger.formatter.date_header = options[:date_header] + Rundock::Logger.formatter.suppress_logging = options[:suppress_logging] end desc 'version', 'Print version' def version puts Rundock::VERSION.to_s