lib/rmega/cli.rb in rmega-0.2.4 vs lib/rmega/cli.rb in rmega-0.2.5
- old
+ new
@@ -41,9 +41,13 @@
cli_options.each do |key, value|
Rmega.options.__send__("#{key}=", value)
end
Rmega.logger.level = ::Logger::DEBUG if cli_options[:debug]
Rmega.options.show_progress = true
+
+ if Thread.respond_to?(:report_on_exception) and !cli_options[:debug]
+ Thread.report_on_exception = false
+ end
end
def apply_opt_parser_options(opts)
opts.on("-t NUM", "--thread_pool_size", "Number of threads to use [1-8], default and recommended is #{Rmega.options.thread_pool_size}") { |num|
num = num.to_i