Skip to content

Commit

Permalink
Put version and description in usage output
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 21, 2019
1 parent 0a828c5 commit 87ff4cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bin/jack.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ const nycReporters = [
'text-summary',
]

const pkg = require('../package.json')

module.exports = main => jack({
main,
usage: 'tap [options] [<files>]',
help:`
${pkg.name} v${pkg.version} - ${pkg.description}
Executes all the files and interprets their output as TAP
formatted test result data. If no files are specified, then
tap will search for testy-looking files, and run those.
Expand Down
3 changes: 3 additions & 0 deletions docs/cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ You can get help on tap's command line interface by running `tap -h`.
Usage:
tap [options] [<files>]
tap v14.1.1 - A Test-Anything-Protocol library for JavaScript
Executes all the files and interprets their output as TAP formatted test result
data. If no files are specified, then tap will search for testy-looking files,
and run those. (See '--test-regex' below.)
Expand Down Expand Up @@ -450,4 +452,5 @@ Config Files:
Run 'tap --dump-config' for a listing of what can be set in that file. Each of
the keys corresponds to one of the options above.
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "tap",
"version": "14.1.1",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
"description": "A Test-Anything-Protocol library",
"homepage": "http://node-tap.org/",
"description": "A Test-Anything-Protocol library for JavaScript",
"homepage": "http://www.node-tap.org/",
"bin": {
"tap": "bin/run.js"
},
Expand Down

0 comments on commit 87ff4cc

Please sign in to comment.