#!/usr/bin/env ruby %w[rubygems thor].each { |gem| require gem } $:.unshift File.dirname(__FILE__) + "/../lib" # We try to load the vendored padrino-core if exist if File.exist?(File.dirname(__FILE__) + "/../../padrino-core/lib") $:.unshift File.dirname(__FILE__) + "/../../padrino-core/lib" end require 'padrino-gen' # We need our config boot because we need to load registered generators so: Padrino::Generators::Cli.start(ARGV)