1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-22 16:30:11 +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('-s --silent', 'Run in silent mode')
.option('--no-color', 'Disable colors') .option('--no-color', 'Disable colors')
.option('--color', 'Enable 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>]'); //.usage('COMMAND <sources> [TO <targets>]');
// Create the NEW command // Create the NEW command