mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-24 02:55:26 +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) {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user