bin/sinatragen in sinatra_generator-0.0.1 vs bin/sinatragen in sinatra_generator-0.0.2

- old
+ new

@@ -1,7 +1,12 @@ #!/usr/bin/env ruby -require 'sinatra_generator' +if ARGV[0] + require 'sinatra_generator' -generator = SinatraGenerator::Generator.new -generator.new_app ARGV[0] -puts "new app generated." + generator = SinatraGenerator::Generator.new + generator.new_app ARGV[0] + puts "new app generated." +else + puts "Usage: sinatragen [FOLDER_NAME]" +end +