"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getOptions = void 0;

var _commandLineArgs2 = _interopRequireDefault(require("command-line-args"));

var _optionDefinitions = _interopRequireDefault(require("./option-definitions"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var getOptions = function getOptions(argv) {
  var _commandLineArgs = (0, _commandLineArgs2["default"])(_optionDefinitions["default"], {
    argv: argv
  }),
      selectedSeeders = _commandLineArgs.seeders,
      dropDatabase = _commandLineArgs.dropdb,
      helpWanted = _commandLineArgs.help;

  return {
    selectedSeeders: selectedSeeders,
    dropDatabase: dropDatabase,
    helpWanted: helpWanted
  };
};

exports.getOptions = getOptions;