Skip to content

Commit f9c5a55

Browse files
committed
add help printing
1 parent c5d703a commit f9c5a55

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/unit/browser/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ const optimist = require('optimist')
3131
// logic
3232
const argv = optimist.argv;
3333

34+
if (argv.help) {
35+
optimist.showHelp();
36+
process.exit(0);
37+
}
38+
3439
const withReporter = (function () {
3540
const reporterPath = path.join(path.dirname(require.resolve('mocha')), 'lib', 'reporters', argv.reporter);
3641
let ctor;

0 commit comments

Comments
 (0)