Skip to content
Browse files

ARGV.empty? is useless. If ARGV is empty, ARGV.first != "new" will al…

…ways be true

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent aa31a25 commit 3cb53758324214ec8bc65979f47dd43d0e85a248 @madjo madjo committed with josevalim Jul 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/commands/application.rb
View
2 railties/lib/rails/commands/application.rb
@@ -4,7 +4,7 @@
exit(0)
end
-if ARGV.first != "new" || ARGV.empty?
@lukeholder
lukeholder added a note Jul 4, 2010

true dat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+if ARGV.first != "new"
ARGV[0] = "--help"
else
ARGV.shift

0 comments on commit 3cb5375

Please sign in to comment.
Something went wrong with that request. Please try again.