1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Improve script/generate help.

This commit is contained in:
José Valim 2010-01-18 23:41:18 +01:00
parent e1029be1eb
commit 93d64dfefc

View file

@ -179,7 +179,17 @@ module Rails
groups[base] << namespace
end
puts "Please select a generator:"
puts "Usage:"
puts " script/generate GENERATOR [args] [options]"
puts
puts "General options:"
puts " -h, [--help] # Print generators options and usage"
puts " -p, [--pretend] # Run but do not make any changes"
puts " -f, [--force] # Overwrite files that already exist"
puts " -s, [--skip] # Skip files that already exist"
puts " -q, [--quiet] # Supress status output"
puts
puts "Please choose a generator below."
puts
# Print Rails defaults first.