1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Add '-v' option as described in help text

This commit is contained in:
Dirk Loss
2019-06-27 22:04:54 +02:00
committed by Alexander Medvednikov
parent f6cf724571
commit b1682e929d

View File

@ -91,7 +91,7 @@ fn main() {
// There's no `flags` module yet, so args have to be parsed manually // There's no `flags` module yet, so args have to be parsed manually
args := os.args args := os.args
// Print the version and exit. // Print the version and exit.
if 'version' in args { if '-v' in args || 'version' in args {
println('V $Version') println('V $Version')
return return
} }