mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 10:38:55 +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:
parent
778418cdfb
commit
04e2f64ba7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user