aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/performance/benchmarker.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2010-02-09 20:19:54 +0700
committerJosé Valim <jose.valim@gmail.com>2010-02-10 08:08:16 +0100
commitaf22c5b16a0f138969221e5a17fc159efb5ae347 (patch)
treeb3ad40c829713815384fe2a8f6a455836a483f2f /railties/lib/rails/commands/performance/benchmarker.rb
parent7d76474e5da6c1c06eb831fe436f12591cca4339 (diff)
downloadrails-af22c5b16a0f138969221e5a17fc159efb5ae347.tar.gz
rails-af22c5b16a0f138969221e5a17fc159efb5ae347.tar.bz2
rails-af22c5b16a0f138969221e5a17fc159efb5ae347.zip
Add missing -h/--help flag to several rails command [#3909 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib/rails/commands/performance/benchmarker.rb')
-rw-r--r--railties/lib/rails/commands/performance/benchmarker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/performance/benchmarker.rb b/railties/lib/rails/commands/performance/benchmarker.rb
index ad84d94dbf..0432261802 100644
--- a/railties/lib/rails/commands/performance/benchmarker.rb
+++ b/railties/lib/rails/commands/performance/benchmarker.rb
@@ -1,5 +1,5 @@
-if ARGV.empty?
- puts "Usage: benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..."
+if [nil, "-h", "--help"].include?(ARGV.first)
+ puts "Usage: rails benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..."
exit 1
end