From 14d9dd901d625f903d2074faa43e4b07c8286f9a Mon Sep 17 00:00:00 2001 From: Michael Shannon Date: Tue, 21 Apr 2015 18:16:59 +0100 Subject: [PATCH] Fixed bug where -v wouldn't work as expected `-v` was returning the help instead of the version number, as it was shorthanded to `version` instead of `--version`. --- bin/cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index 645bdc4..22501df 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -16,7 +16,7 @@ var options = { } // -v is a shorthand for --version var shorthands = { - "v": "version" + "v": "--version" } var parsed = nopt(options, shorthands); @@ -57,4 +57,4 @@ else { // So if the user types "foundation new myApp --edge", "myApp" is a secondary command, and "--edge" is an option foundation[cmd.args[0]](cmd.args.slice(1), cmd.opts); } -} \ No newline at end of file +}