diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-02-04 11:08:46 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-02-04 11:57:13 +1100 |
commit | 1ae543a180095efef5ad59eb9883748ca20cebcf (patch) | |
tree | 8f44e519b49526028d30cb69fdb4ca0c9f7dffd3 | |
parent | 02ef8d20a19f9548800eaefc0ebdf18fbd9a67be (diff) | |
download | rails-1ae543a180095efef5ad59eb9883748ca20cebcf.tar.gz rails-1ae543a180095efef5ad59eb9883748ca20cebcf.tar.bz2 rails-1ae543a180095efef5ad59eb9883748ca20cebcf.zip |
-v and --version params now work on rails script in or our of an app
-rw-r--r-- | railties/lib/rails/commands.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/commands.rb b/railties/lib/rails/commands.rb index f0dcf61d98..4240038673 100644 --- a/railties/lib/rails/commands.rb +++ b/railties/lib/rails/commands.rb @@ -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' |