function generateOptionsDoc (options) {
  var doc = 'id|type|available options|default|description|usage|version\n|---|---|---|---|---|---|---|\n';

  _.forEach(options, (option) => {
    var convertArrayToDoc = (array) => {
        return _.reduce(array, (acc, ele) => {
          return (_.isEmpty(acc) ? acc : acc + ', ') + ele;
        }, '') || '-';
      },
      defaultOption = option.default;

    // override empty values with stringified equivalent to represent correctly in README
    (_.isEmpty(defaultOption)) && (defaultOption = JSON.stringify(defaultOption));

    doc += `${option.id}|${option.type}|${convertArrayToDoc(option.availableOptions, true)}|` +
      `${defaultOption}|${option.description}|${convertArrayToDoc(option.usage)}|` +
      `${convertArrayToDoc(option.supportedModuleVersion)}\n`;
  });
  return doc;
}
Generates markdown table documentation of options from getOptions()

@param {Object} options - options from getOptions()
@returns {String} - markdown table consisting documetation for options