#!/usr/bin/env node

'use strict';

var MakeUp = require('../index');

var argv = require('minimist')(process.argv.slice(2));

var options = {
  dirs: argv._,
  integrations: argv.i,
  since: argv.s,
  gitBranch: argv.b
};
MakeUp.check(options, function(err, result) {
  if (err) {
    console.log('ERROR: ' + err.message);
    process.exit(1); // eslint-disable-line no-process-exit
  }
  console.log(result);
});

#!/usr/bin/env node

'use strict';

var MakeUp = require('../index');

var argv = require('minimist')(process.argv.slice(2));

var options = {
  dirs: argv._,
  integrations: argv.i,
  since: argv.s,
  gitBranch: argv.b
};
MakeUp.check(options, function(err, result) {
  if (result) {
    console.log(result);
  }
  if (err) {
    console.log('ERROR: ' + err.message);
    process.exit(1); // eslint-disable-line no-process-exit
  }
});

Make sure we always print the result if it exists.
Make sure we always print the result if it exists.
