diff options
author | Madjo DIAPENA <mdiapena@gmail.com> | 2010-07-04 17:41:08 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-04 18:49:28 +0200 |
commit | 3cb53758324214ec8bc65979f47dd43d0e85a248 (patch) | |
tree | 1b5f0ef8c63183256367546fc3a6daf1ae836b2e /railties/lib | |
parent | aa31a255c831808b42c28978a36ffa42ff03e68e (diff) | |
download | rails-3cb53758324214ec8bc65979f47dd43d0e85a248.tar.gz rails-3cb53758324214ec8bc65979f47dd43d0e85a248.tar.bz2 rails-3cb53758324214ec8bc65979f47dd43d0e85a248.zip |
ARGV.empty? is useless. If ARGV is empty, ARGV.first != "new" will always be true
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/commands/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/application.rb b/railties/lib/rails/commands/application.rb index a3a5aed399..47c6752ca3 100644 --- a/railties/lib/rails/commands/application.rb +++ b/railties/lib/rails/commands/application.rb @@ -4,7 +4,7 @@ if %w(--version -v).include? ARGV.first exit(0) end -if ARGV.first != "new" || ARGV.empty? +if ARGV.first != "new" ARGV[0] = "--help" else ARGV.shift |