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:

committed by
Alexander Medvednikov

parent
f6cf724571
commit
b1682e929d
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user