2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-09-22 01:29:02 +00:00

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

View File

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