'use strict';

var path    = require('path');
var Command = require('../models/command');
var Project = require('../models/project');

module.exports = Command.extend({
  name: 'open',
  description: 'open the ios project with the default application',
  //commandSuffix: '<options...>',
  // Disabled for now until we support other platforms
  // https://github.com/poetic/ember-cordova-cli/issues/14
  //optionsHelp: [
    //'--platform|-p ios|android (Default: ios)'
  //],
  parseOptions: function() {
    this.options.platform = this.options.platform || this.options.p || 'ios';
  },
  validateOptions: function() {
    if(this.options.platform === 'ios') {
      return true;
    }
  },
  run: function() {
    var project = Project.closest();
    require('../tasks/open')(this.options.platform, project)();
  }
});

@@ -250,232 +250,8 @@
 n',%0A
-  //commandSuffix: '%3Coptions...%3E',%0A  // Disabled for now until we support other platforms%0A  // https://github.com/poetic/ember-cordova-cli/issues/14%0A  //optionsHelp: %5B%0A    //'--platform%7C-p ios%7Candroid (Default: ios)'%0A  //%5D,%0A
   pa

remove extra commented lines in open command