#!/usr/bin/env node

const cli = require('../lib/cli');
cli.execute(process.argv, (run) => {
  if (!run || run.reportedTests().length) {
    process.exit(1);
  } else {
    process.exit(0);
  }
});

#!/usr/bin/env node

const cli = require('../lib/cli');
cli.execute(process.argv, (run) => {
  if (run || run.reportedTests().length < 1) {
    process.exit(0);
  } else {
    process.exit(1);
  }
});

Fix error when using -h
Fix error when using -h

Using the help menu would invoke a code path that caused an error
to be thrown. This fixes that issue.

Fixes #10
