From 4a1ed01e9d53da87b57802cb99e3ca7956a6eef7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 14 Oct 2005 03:28:22 +0000 Subject: Update docs git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/commands/perform.rb | 2 +- railties/lib/commands/perform/benchmarker.rb | 2 +- railties/lib/commands/perform/profiler.rb | 2 +- 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 -- cgit v1.2.3