Add destroy alias to engines

This commit is contained in:
Guillermo Iguaran 2011-08-22 23:39:17 -05:00
parent 0b6da0c654
commit d17954c7d8
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@ require 'active_support/core_ext/object/inclusion'
ARGV << '--help' if ARGV.empty?
aliases = {
"g" => "generate"
"g" => "generate",
"d" => "destroy"
}
command = ARGV.shift
@ -30,7 +31,7 @@ Usage: rails COMMAND [ARGS]
The common rails commands available for engines are:
generate Generate new code (short-cut alias: "g")
destroy Undo code generated with "generate"
destroy Undo code generated with "generate" (short-cut alias: "d")
All commands can be run with -h for more information.
EOT