bin/request-log-analyzer in request-log-analyzer-1.6.4 vs bin/request-log-analyzer in request-log-analyzer-1.7.0

- old
+ new

@@ -55,10 +55,12 @@ command_line.option(:report_amount, :default => 20) command_line.option(:report_sort, :default => 'sum,mean') command_line.switch(:debug) command_line.switch(:no_progress) + command_line.switch(:gets_memory_protection) + command_line.switch(:silent) command_line.minimum_parameters = 1 end rescue CommandLine::Error => e @@ -85,10 +87,11 @@ puts " --mailhost <server> Use the given server as the SMTP server for sending email." puts " --no-progress Hide the progress bar." puts " --output <format> Output format. Supports 'html' and 'fixed_width'." puts " --report-width <amount> Width of ASCII report. Defaults to terminal width." puts " --report-amount <amount> Maximum numer of results per report." + puts " --silent Skip the commercials (includes --no-progress)." puts " --yaml <filename> Dump the results in YAML format in the given file." puts puts "Examples:" puts " request-log-analyzer production.log" puts " request-log-analyzer mongrel.0.log mongrel.1.log --output HTML --mail root@localhost" @@ -110,12 +113,14 @@ DatabaseConsole.new(arguments).run! when :strip require File.dirname(__FILE__) + '/../lib/request_log_analyzer/log_processor' RequestLogAnalyzer::LogProcessor.build(:strip, arguments).run! else - puts "Request-log-analyzer, by Willem van Bergen and Bart ten Brinke - version #{RequestLogAnalyzer::VERSION}" - puts "Website: http://railsdoctors.com" - puts + unless arguments[:silent] + puts "Request-log-analyzer, by Willem van Bergen and Bart ten Brinke - version #{RequestLogAnalyzer::VERSION}" + puts "Website: http://railsdoctors.com" + puts + end # Run the request_log_analyzer! RequestLogAnalyzer::Controller.build_from_arguments(arguments).run! end