Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
04/03/06 22:39:36 (3 years ago)
Author:
david
Message:

Fixed that rails --version should have the return code of 0 (success) (closes #4560) [blair@orcaware.com]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/bin/rails

    r4115 r4145  
    33 
    44require File.dirname(__FILE__) + '/../lib/rails/version' 
    5 abort "Rails #{Rails::VERSION::STRING}" if %w(--version -v).include? ARGV.first 
     5if %w(--version -v).include? ARGV.first 
     6  puts "Rails #{Rails::VERSION::STRING}" 
     7  exit(0) 
     8end 
    69 
    710freeze   = ARGV.any? { |option| %w(--freeze -f).include?(option) }