1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-23 05:37:23 +00:00

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.
This commit is contained in:
hacksalot 2016-01-11 08:29:46 -05:00
parent 376e720f4b
commit 815ee3dc7e

View File

@ -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 <sources> [TO <targets>]');
// Create the NEW command