blob: a3a5aed39974259994ed8b3ce4e0e884cdf41d94 (
plain) (
tree)
|
|
require 'rails/version'
if %w(--version -v).include? ARGV.first
puts "Rails #{Rails::VERSION::STRING}"
exit(0)
end
if ARGV.first != "new" || ARGV.empty?
ARGV[0] = "--help"
else
ARGV.shift
end
require 'rubygems' if ARGV.include?("--dev")
require 'rails/generators'
require 'rails/generators/rails/app/app_generator'
Rails::Generators::AppGenerator.start
|