diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/commands/perform.rb | 2 | ||||
-rw-r--r-- | railties/lib/commands/perform/benchmarker.rb | 2 | ||||
-rw-r--r-- | 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 |