lib/padrino-gen/generators/controller.rb in padrino-gen-0.8.1 vs lib/padrino-gen/generators/controller.rb in padrino-gen-0.8.2

- old
+ new

@@ -22,13 +22,10 @@ class_option :root, :desc => "The root destination", :aliases => '-r', :default => ".", :type => :string class_option :app, :desc => "The application destination", :aliases => '-a', :default => "/app", :type => :string class_option :destroy, :aliases => '-d', :default => false, :type => :boolean # Show help if no argv given - def self.start(given_args=ARGV, config={}) - given_args = ["-h"] if given_args.empty? - super - end + require_arguments! def create_controller self.destination_root = options[:root] if in_app_root? app = options[:app].underscore