diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-25 20:46:50 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-25 20:46:50 +0000 |
commit | cb1aab05528b98fb534c400b1dbe09a540a4436c (patch) | |
tree | eec8a80edcbe08c041f32326c993ae263f6b20d8 /actionpack | |
parent | d69be7df6dd1d358b019a2b8fe2c7cd10050063e (diff) | |
download | rails-cb1aab05528b98fb534c400b1dbe09a540a4436c.tar.gz rails-cb1aab05528b98fb534c400b1dbe09a540a4436c.tar.bz2 rails-cb1aab05528b98fb534c400b1dbe09a540a4436c.zip |
/ default uri, -b shortcut
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rwxr-xr-x | actionpack/lib/action_controller/request_profiler.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |