-v and --version params now work on rails script in or our of an app

This commit is contained in:
Mikel Lindsaar 2010-02-04 11:08:46 +11:00
parent 02ef8d20a1
commit 1ae543a180
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ when 'runner'
require 'rails/commands/runner'
require ENV_PATH
when '--version', '-v'
puts "Rails #{Rails::VERSION::STRING}"
when '--help', '-h'
puts HELP_TEXT
when '--version', '-v'