bin/wbench in wbench-0.2.3 vs bin/wbench in wbench-0.3.0
- old
+ new
@@ -19,9 +19,13 @@
opts.on("-b", "--browser [BROWSER]", "Set the web browser, chrome and firefox are available (default: #{WBench::DEFAULT_BROWSER})") do |browser|
options[:browser] = browser
end
+ opts.on("-u", "--user-agent [USER AGENT]", "Set the user-agent (default: browsers' default user-agent value)") do |ua|
+ options[:ua] = ua
+ end
+
end.parse!
end
if url = ARGV[0]
puts WBench::Benchmark.run(url, options)