Skip to content

Commit

Permalink
Merge pull request #554 from wardpeet/bug/version
Browse files Browse the repository at this point in the history
Fixed version argument in yargs to display current cli version
  • Loading branch information
paulirish authored Aug 2, 2016
2 parents 2019595 + 504ea95 commit 1e468e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lighthouse-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const log = require('../lighthouse-core/lib/log');

const cli = yargs
.help('help')
.version()
.version(() => require('../package').version)
.showHelpOnFail(false, 'Specify --help for available options')

.usage('$0 url')
Expand Down Expand Up @@ -85,8 +85,7 @@ Example: --output-path=./lighthouse-results.html`
'list-trace-categories',
'verbose',
'quiet',
'help',
'version'
'help'
])

.choices('output', Object.values(Printer.OUTPUT_MODE))
Expand Down

0 comments on commit 1e468e7

Please sign in to comment.