From cb1aab05528b98fb534c400b1dbe09a540a4436c Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 25 Oct 2007 20:46:50 +0000 Subject: / default uri, -b shortcut git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/request_profiler.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/request_profiler.rb b/actionpack/lib/action_controller/request_profiler.rb index 1f82fde5e7..88e25737a6 100755 --- a/actionpack/lib/action_controller/request_profiler.rb +++ b/actionpack/lib/action_controller/request_profiler.rb @@ -87,7 +87,7 @@ module ActionController end def default_uri - '/benchmarks/hello' + '/' end def env @@ -126,11 +126,11 @@ module ActionController OptionParser.new do |opt| opt.banner = "USAGE: #{$0} uri [options]" - opt.on('-u', '--uri [URI]', 'Request URI. Defaults to http://localhost:3000/benchmarks/hello') { |v| options[:uri] = v } + opt.on('-u', '--uri [URI]', 'Request URI. Defaults to http://localhost:3000/') { |v| options[:uri] = v } opt.on('-n', '--times [0000]', 'How many requests to process. Defaults to 1000.') { |v| options[:n] = v.to_i } + opt.on('-b', '--benchmark', 'Benchmark instead of profiling') { |v| options[:benchmark] = v } opt.on('--method [GET]', 'HTTP request method. Defaults to GET.') { |v| options[:method] = v.upcase } opt.on('--fixture [FILE]', 'Path to POST fixture file') { |v| options[:fixture] = v } - opt.on('--benchmark', 'Benchmark instead of profiling') { |v| options[:benchmark] = v } opt.on('--open [CMD]', 'Command to open profile results. Defaults to "open %s &"') { |v| options[:open] = v } opt.on('-h', '--help', 'Show this help') { puts opt; exit } -- cgit v1.2.3