 files = require("./../file-utils")
 fs = require('fs')
+_ = require('grunt').util._
 
 module.exports = (projectName, shouldNpmInstall) ->
+  ensureNotEmpty(projectName)
   dest = "#{process.cwd()}/#{projectName}"
   ensureNew(dest)
   printHello(dest)

  else
    printWelcome(projectName)

ensureNew = (dest) ->
  return unless fs.existsSync(dest)
  console.error("Uh oh, it looks like `#{dest}` already exists! Exiting.")
  process.exit(1)

printHello = (dest) ->
  console.log """


               For more info, check out http://github.com/testdouble/lineman
               """

fail = (message) ->
  console.error(message)
  process.exit(1)
