aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-17 18:26:08 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-19 16:11:54 +0200
commit6619357f75053db08f96ab0649312d1ba1126d2a (patch)
tree75b96b5fd95647c959c64b7bd706468ced005bb1 /railties/bin
parent01cde132909368656464d80019c2600aa9e5ec16 (diff)
downloadrails-6619357f75053db08f96ab0649312d1ba1126d2a.tar.gz
rails-6619357f75053db08f96ab0649312d1ba1126d2a.tar.bz2
rails-6619357f75053db08f96ab0649312d1ba1126d2a.zip
When rails is invoked without args, be sure that help is called.
Diffstat (limited to 'railties/bin')
-rwxr-xr-xrailties/bin/rails2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/bin/rails b/railties/bin/rails
index cd173e51b6..7d79faff4a 100755
--- a/railties/bin/rails
+++ b/railties/bin/rails
@@ -7,5 +7,7 @@ if %w(--version -v).include? ARGV.first
exit(0)
end
+ARGV << "--help" if ARGV.empty?
+
require File.dirname(__FILE__) + '/../lib/generator/generators/app'
Rails::Generators::App.start