aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/rails
blob: 7d79faff4a6dbe9b811e15d47a4e7b4364144ec4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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

ARGV << "--help" if ARGV.empty?

require File.dirname(__FILE__) + '/../lib/generator/generators/app'
Rails::Generators::App.start