Skip to content
Browse files

/ default uri, -b shortcut

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent d69be7d commit cb1aab05528b98fb534c400b1dbe09a540a4436c @jeremy jeremy committed Oct 25, 2007
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_controller/request_profiler.rb
View
6 actionpack/lib/action_controller/request_profiler.rb
@@ -87,7 +87,7 @@ def uri
end
def default_uri
- '/benchmarks/hello'
+ '/'
end
def env
@@ -126,11 +126,11 @@ def parse_options(args)
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 }

0 comments on commit cb1aab0

Please sign in to comment.
Something went wrong with that request. Please try again.