 
     packageNamePrompt = (callback) =>
       commander.prompt 'Package name (optional): ', (name) =>
-        name = _s.clean name
-        name = "#{name.charAt(0).toLowerCase()}#{name.slice(1)}"
-        if name isnt ''
+        name = name.parameterize().dasherize().replace(/-/g, '.')
+        if name isnt '' and name.has('.')
           args.push name
           appNamePrompt callback
         else


    appNamePrompt = (callback) =>
      commander.prompt 'App name (optional): ', (name) =>
        name = _s.titleize _s.clean name
        args.push name if name isnt ''
        callback()


require 'sugar'
fs = require 'fs'
wrench = require 'wrench'
commander = require 'commander'
Exec = require '../lib/exec'

platforms = ['android', 'ios']
