require File.dirname(__FILE__) + '/../lib/ruby_version_check' Signal.trap("INT") { puts; exit } require File.dirname(__FILE__) + '/../lib/rails/version' if %w(--version -v).include? ARGV.first puts "Rails #{Rails::VERSION::STRING}" exit(0) end require File.dirname(__FILE__) + '/../lib/generators' if ARGV.size == 0 Rails::Generators.help exit end name = ARGV.shift Rails::Generators.invoke name, ARGV, :invoke