Add Unix/Mac-conventional `-v` version flag (PR#628)

Most Unix-based command line utilities respond to a _lowercase_ `-v` flag which outputs the current version. Adding that as an alias here in addition to the already present `--version` and `-V` flags :)
This commit is contained in:
Kevin Schaich 2018-05-31 15:15:24 -07:00 committed by Ronan Jouchet
parent 778418cdfb
commit 04e2f64ba7
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ function checkInternet() {
if (require.main === module) {
program
.version(packageJson.version)
.version(packageJson.version, '--version, -V, -v')
.arguments('<targetUrl> [dest]')
.action((targetUrl, appDir) => {
program.targetUrl = targetUrl;