Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
fix(opts): add --version/-v
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed May 30, 2017
1 parent ca4d0c8 commit 2633a0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parse-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ function parseArgs () {
type: 'string',
describe: 'execute string as if inside `npm run-script`'
})
.version()
.alias('version', 'v')

const opts = parser.getOptions()
const bools = new Set(opts.boolean)
Expand Down

0 comments on commit 2633a0e

Please sign in to comment.