diff options
author | kennyj <kennyj@gmail.com> | 2012-12-04 02:21:31 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-12-04 02:21:31 +0900 |
commit | 0f47c496781fda4ce35f79bea9fb03e6b29c1867 (patch) | |
tree | cc4f4ef900e4c3c55c6f126a749b38a28c334854 /railties | |
parent | 4fac8c651a0db3b2e49b6eb2d97424a55d81f8e0 (diff) | |
download | rails-0f47c496781fda4ce35f79bea9fb03e6b29c1867.tar.gz rails-0f47c496781fda4ce35f79bea9fb03e6b29c1867.tar.bz2 rails-0f47c496781fda4ce35f79bea9fb03e6b29c1867.zip |
Fix wrong doc and message about rails profiler.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/commands/profiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/profiler.rb b/railties/lib/rails/commands/profiler.rb index 3f6966b4f0..315bcccf61 100644 --- a/railties/lib/rails/commands/profiler.rb +++ b/railties/lib/rails/commands/profiler.rb @@ -8,7 +8,7 @@ def options defaults = ActiveSupport::Testing::Performance::DEFAULTS OptionParser.new do |opt| - opt.banner = "Usage: rails benchmarker 'Ruby.code' 'Ruby.more_code' ... [OPTS]" + opt.banner = "Usage: rails profiler 'Ruby.code' 'Ruby.more_code' ... [OPTS]" opt.on('-r', '--runs N', Numeric, 'Number of runs.', "Default: #{defaults[:runs]}") { |r| options[:runs] = r } opt.on('-o', '--output PATH', String, 'Directory to use when writing the results.', "Default: #{defaults[:output]}") { |o| options[:output] = o } opt.on('-m', '--metrics a,b,c', Array, 'Metrics to use.', "Default: #{defaults[:metrics].join(",")}") { |m| options[:metrics] = m.map(&:to_sym) } |