Skip to content

Commit

Permalink
[padrino-core] Re introduced aliases padrino g, padrino gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Jul 12, 2010
1 parent 80d499b commit 6ae6d91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion padrino-core/lib/padrino-core/cli/base.rb
Expand Up @@ -62,7 +62,7 @@ def console
require File.expand_path(File.dirname(__FILE__) + '/console')
IRB.start
end

desc "generate", "Executes the Padrino generator with given options."
def generate(*args)
# Build Padrino g as an alias of padrino-gen
Expand All @@ -78,6 +78,10 @@ def generate(*args)
puts "<= You need padrino-gen! Run: gem install padrino-gen"
end
end
desc "g", "Executes the Padrino generator with given options."
alias :g :generate
desc "gen", "Executes the Padrino generator with given options."
alias :gen :generate

desc "version", "Show current Padrino Version"
map "-v" => :version, "--version" => :version
Expand Down

0 comments on commit 6ae6d91

Please sign in to comment.