#!/usr/bin/env node

'use strict';

var foreground = require('foreground-child');
var test = require('../');
if (process.argv[2] === 'cover') {
  foreground(process.argv[0], [require.resolve('istanbul/lib/cli'), 'cover', __filename]);
} else {
  test(require(process.cwd()), process.cwd() + '/test');
}

@@ -133,16 +133,50 @@
  'cover'
+ %7C%7C process.argv%5B2%5D === 'coverage'
 ) %7B%0A  fo

Update to match readme