mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ARGV.empty? is useless. If ARGV is empty, ARGV.first != "new" will always be true
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
aa31a255c8
commit
3cb5375832
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue