Skip to content

Commit

Permalink
Update CLI a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Jul 12, 2016
1 parent 000f0c2 commit 0501e94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ const yargs = require('yargs');
const yargv = yargs
.usage('Usage: test262-harness [options] <test-file-glob>')
.demand('hostType')
.describe('hostType', 'eshost host type (chakra, d8, jsshell, chrome, firefox, etc.)')
.describe('hostType', 'eshost host type (ch, d8, jsshell, chrome, firefox, etc.)')
.describe('hostPath', 'path to eshost host binary')
.describe('hostArgs', 'command-line arguments to pass to eshost host')
.describe('test262Dir', 'test262 root directory')
.describe('includesDir', 'directory where helper files are found')
.describe('threads', 'number of threads to use')
.nargs('threads', 1)
.default('threads', 1)
.alias('threads', 't')
.describe('reporter', 'select a reporter to use (simple, json, or tap)')
.nargs('reporter', 1)
.alias('reporter', 'r')
.help('help')
.alias('help', 'h')
.example('test262-harness path/to/test.js')

exports.argv = yargv.argv;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"test"
],
"devDependencies": {
"rimraf": "^2.2.8",
"rimraf": "^2.5.3",
"tape": "^3.0.3"
}
}

0 comments on commit 0501e94

Please sign in to comment.