add help printing
This commit is contained in:
parent
c5d703aaa7
commit
f9c5a5511e
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@ const optimist = require('optimist')
|
||||||
// logic
|
// logic
|
||||||
const argv = optimist.argv;
|
const argv = optimist.argv;
|
||||||
|
|
||||||
|
if (argv.help) {
|
||||||
|
optimist.showHelp();
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
const withReporter = (function () {
|
const withReporter = (function () {
|
||||||
const reporterPath = path.join(path.dirname(require.resolve('mocha')), 'lib', 'reporters', argv.reporter);
|
const reporterPath = path.join(path.dirname(require.resolve('mocha')), 'lib', 'reporters', argv.reporter);
|
||||||
let ctor;
|
let ctor;
|
||||||
|
|
Loading…
Reference in a new issue