src/lib/commands/generate/index.js
import { getOptions } from './options';
import help from './help';
import generateSeeder from './generate-seeder';
/**
* mongoose-data-seed generate command
* @param {stringp[]} argv cli arguments
* @return {Promise}
*/
export default async argv => {
const { seederName, helpWanted } = getOptions(argv);
if (helpWanted) return help();
await generateSeeder(seederName);
};