aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/performance/profiler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/performance/profiler.rb')
-rw-r--r--railties/lib/rails/commands/performance/profiler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/performance/profiler.rb b/railties/lib/rails/commands/performance/profiler.rb
index 50ae411166..6d9717b5cd 100644
--- a/railties/lib/rails/commands/performance/profiler.rb
+++ b/railties/lib/rails/commands/performance/profiler.rb
@@ -1,5 +1,5 @@
-if ARGV.empty?
- $stderr.puts "Usage: profiler 'Person.expensive_method(10)' [times] [flat|graph|graph_html]"
+if [nil, "-h", "--help"].include?(ARGV.first)
+ $stderr.puts "Usage: rails profiler 'Person.expensive_method(10)' [times] [flat|graph|graph_html]"
exit(1)
end