aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-14 03:28:22 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-14 03:28:22 +0000
commit4a1ed01e9d53da87b57802cb99e3ca7956a6eef7 (patch)
treee81b58fbae4ec36f30e1425f660c2e59ceb5caff
parente9df41a75929ad72608eb9a2d3757b200ba1d23d (diff)
downloadrails-4a1ed01e9d53da87b57802cb99e3ca7956a6eef7.tar.gz
rails-4a1ed01e9d53da87b57802cb99e3ca7956a6eef7.tar.bz2
rails-4a1ed01e9d53da87b57802cb99e3ca7956a6eef7.zip
Update docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/lib/commands/perform.rb2
-rw-r--r--railties/lib/commands/perform/benchmarker.rb2
-rw-r--r--railties/lib/commands/perform/profiler.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/commands/perform.rb b/railties/lib/commands/perform.rb
index 0cc04f2c87..ec9a47505b 100644
--- a/railties/lib/commands/perform.rb
+++ b/railties/lib/commands/perform.rb
@@ -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 \ No newline at end of file
diff --git a/railties/lib/commands/perform/benchmarker.rb b/railties/lib/commands/perform/benchmarker.rb
index 7e14de7cc3..296192f53c 100644
--- a/railties/lib/commands/perform/benchmarker.rb
+++ b/railties/lib/commands/perform/benchmarker.rb
@@ -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
diff --git a/railties/lib/commands/perform/profiler.rb b/railties/lib/commands/perform/profiler.rb
index d0eb7b9b83..f599ad6635 100644
--- a/railties/lib/commands/perform/profiler.rb
+++ b/railties/lib/commands/perform/profiler.rb
@@ -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