aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/application.rb
blob: fe2f89ee9889ca1adad3dd803426a1e8a96764f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'rails/version'
if %w(--version -v).include? ARGV.first
  puts "Rails #{Rails::VERSION::STRING}"
  exit(0)
end

ARGV << "--help"   if ARGV.empty?
require 'rubygems' if ARGV.include?("--dev")

require 'rails/generators'
require 'generators/rails/app/app_generator'

Rails::Generators::AppGenerator.start