 path      = require 'path'
 min       = require 'minimist'
-gentry    = require 'gentry'  
+gentry    = require 'gentry'
 runner    = require 'gentry-runner-cli'
 
 #questions = require '../app/questions'

        , ->
          process.exit()

      else
        usage()


if argv._.length is 0 then return usage()

else

  try

    generator = require "gentry-#{argv._[0]}"
    questions = generator.questions

    runner questions, (answers) ->

      # scaffold
      if !argv._[1]?

        dest = process.cwd() + "/#{answers.package.name}"
        gentry.autoScaffold
          answers: answers
