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:
parent
f6cf724571
commit
b1682e929d
@ -91,7 +91,7 @@ fn main() {
|
||||
// There's no `flags` module yet, so args have to be parsed manually
|
||||
args := os.args
|
||||
// Print the version and exit.
|
||||
if 'version' in args {
|
||||
if '-v' in args || 'version' in args {
|
||||
println('V $Version')
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user