diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-17 18:26:08 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:11:54 +0200 |
commit | 6619357f75053db08f96ab0649312d1ba1126d2a (patch) | |
tree | 75b96b5fd95647c959c64b7bd706468ced005bb1 /railties/bin | |
parent | 01cde132909368656464d80019c2600aa9e5ec16 (diff) | |
download | rails-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-x | railties/bin/rails | 2 |
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 |