Update docs

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-10-14 03:28:22 +00:00
parent e9df41a759
commit 4a1ed01e9d
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
if %w( benchmarker profiler ).include?(ARGV.first)
require "#{File.dirname(__FILE__)}/perform/#{ARGV.shift}"
else
puts "Choose either benchmarker or profiler"
puts "Usage: ./script/perform [benchmarker|profiler]"
end

View File

@@ -1,7 +1,7 @@
#!/usr/local/bin/ruby
if ARGV.empty?
puts "Usage: benchmarker times 'Person.expensive_way' 'Person.another_expensive_way' ..."
puts "Usage: ./script/perform benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..."
exit
end

View File

@@ -1,6 +1,6 @@
#!/usr/local/bin/ruby
if ARGV.empty?
$stderr.puts "Usage: profiler 'Person.expensive_method(10)' [times]"
$stderr.puts "Usage: ./script/perform profiler 'Person.expensive_method(10)' [times]"
exit(1)
end