'use strict';

(function () {

  var utils = require('./utils');
  var getNodeProperties = utils.getNodeProperties;
  var validateName = utils.validateName;
  var serializeOptions = utils.serializeOptions;

  var validOptions = {
    alias: {
      type: 'string'
    },
    description: {
      type: 'string'
    },
    options: {
      type: 'array'
    }
  };

  function Arg () {
    var properties = getNodeProperties(arguments);
    validateName(properties.name);
    serializeOptions(properties.options, validOptions);

    properties._type = 'arg';

    return properties;
  }

  module.exports = Arg;

})();

@@ -227,49 +227,8 @@
 = %7B%0A
-    alias: %7B%0A      type: 'string'%0A    %7D,%0A
     

Remove alias option from Arg