1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/commands/generate.rb
Prem Sichanugrist af22c5b16a Add missing -h/--help flag to several rails command [#3909 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:08:16 +01:00

9 lines
231 B
Ruby
Executable file

require 'rails/generators'
if [nil, "-h", "--help"].include?(ARGV.first)
Rails::Generators.help 'generate'
exit
end
name = ARGV.shift
Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => Rails.root