From 815ee3dc7e95be8af60c32fbe44270039c6432c9 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Mon, 11 Jan 2016 08:29:46 -0500 Subject: [PATCH] Support lowercase -v version flag. Commander.js built-in version handling uses an uppercase shortcut (-V) for the version, so the common -v (lowercase) isn't recognized and errors out. --- src/cli/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/main.js b/src/cli/main.js index db10ed6..9259cc5 100644 --- a/src/cli/main.js +++ b/src/cli/main.js @@ -45,7 +45,8 @@ Definition of the `main` function. .option('-s --silent', 'Run in silent mode') .option('--no-color', 'Disable colors') .option('--color', 'Enable colors') - .option('-d --debug', 'Enable diagnostics', false); + .option('-d --debug', 'Enable diagnostics', false) + .option('-v --version', 'Show the version'); //.usage('COMMAND [TO ]'); // Create the NEW command