File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const help = `
40
40
--android-project <path> ............. Use specified directory for Android native project (default: 'android')
41
41
42
42
-h, --help ........................... Print help for the platform, then quit
43
- -- version .... ........................ Print version, then quit
43
+ -v, -- version ........................ Print version, then quit
44
44
--verbose ............................ Print verbose output to stderr
45
45
` ;
46
46
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ namespace CordovaRes {
187
187
}
188
188
189
189
export async function runCommandLine ( args : readonly string [ ] ) : Promise < void > {
190
- if ( args . includes ( '--version' ) ) {
190
+ if ( args . includes ( '--version' ) || args . includes ( '-v' ) ) {
191
191
const pkg = await import ( path . resolve ( __dirname , '../package.json' ) ) ;
192
192
process . stdout . write ( pkg . version + '\n' ) ;
193
193
return ;
You can’t perform that action at this time.
0 commit comments