From a0d0b14f9ce873a749969e95405f598ea2d85f03 Mon Sep 17 00:00:00 2001 From: Douglas Wade Date: Fri, 19 Aug 2016 08:22:19 -0700 Subject: [PATCH] Add version flag to react-server-cli (#592) --- packages/react-server-cli/src/parseCliArgs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-server-cli/src/parseCliArgs.js b/packages/react-server-cli/src/parseCliArgs.js index 5f3627196..7f14cb346 100644 --- a/packages/react-server-cli/src/parseCliArgs.js +++ b/packages/react-server-cli/src/parseCliArgs.js @@ -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)