/* eslint-disable no-console, no-unused-expressions */
var yargs = require('yargs')
  .command('migration', 'Show commands available for migrations')
  .example('$0 migration')
  .demand(1, 'Must provide a valid command');

var argv = yargs.argv;
var command = argv._[0];

var commandModule = require('./' + command);

if (typeof commandModule === 'function') {
  commandModule(yargs);
} else {
  yargs.showHelp();
}

@@ -1,8 +1,28 @@
+#!/usr/bin/env node%0A
 /* eslin

set env on top of file.