mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Update docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user