'use strict';

var CreateTask       = require('../../lib/tasks/create-cordova-project');
var camelize         = require('../../lib/utils/string.js').camelize;

module.exports = {
  name: 'ember-cordova',

  availableOptions: [
    {
      name: 'name',
      type: String
    }, {
      name: 'cordovaid',
      type: String
    }
  ],

  normalizeEntityName: function() {
    // h/t mirage
    // this prevents an error when the entityName is
    // not specified (since that doesn't actually matter
    // to us
  },

  afterInstall: function(options) {
    var projectName = this.project.name();

    var create = new CreateTask({
      id: options.cordovaid || camelize(projectName),
      name: options.name || camelize(projectName),
      project: this.project,
      ui: this.ui
    });

    return create.run();
  }
};

'use strict';

var CreateTask       = require('../../lib/tasks/create-cordova-project');
var camelize         = require('../../lib/utils/string.js').camelize;

module.exports = {
  name: 'ember-cordova',

  availableOptions: [
    {
      name: 'name',
      type: String
    }, {
      name: 'cordovaId',
      type: String
    }
  ],

  normalizeEntityName: function() {
    // h/t mirage
    // this prevents an error when the entityName is
    // not specified (since that doesn't actually matter
    // to us
  },

  afterInstall: function(options) {
    var projectName = this.project.name();

    var create = new CreateTask({
      id: options.cordovaId || camelize(projectName),
      name: options.name || camelize(projectName),
      project: this.project,
      ui: this.ui
    });

    return create.run();
  }
};

--- 
+++ 
@@ -11,7 +11,7 @@
       name: 'name',
       type: String
     }, {
-      name: 'cordovaId',
+      name: 'cordovaid',
       type: String
     }
   ],
@@ -27,7 +27,7 @@
     var projectName = this.project.name();
 
     var create = new CreateTask({
-      id: options.cordovaId || camelize(projectName),
+      id: options.cordovaid || camelize(projectName),
       name: options.name || camelize(projectName),
       project: this.project,
       ui: this.ui
Remove cap letter from generator command option