Skip to content

Commit

Permalink
Add version flag to react-server-cli (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-wade authored and gigabo committed Aug 19, 2016
1 parent 0dd766f commit a0d0b14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-server-cli/src/parseCliArgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export default (args = process.argv) => {
default: false,
type: "boolean",
})
.version(function() {
return require('../package').version;
})
.alias('v', 'version')
.help('?')
.alias('?', 'help')
.demand(0)
Expand Down

0 comments on commit a0d0b14

Please sign in to comment.