mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Handle --version arg as it already do for help
This commit is contained in:
parent
e27a3b65f1
commit
2ca9866f86
@ -95,7 +95,7 @@ mut:
|
|||||||
fn main() {
|
fn main() {
|
||||||
args := os.args
|
args := os.args
|
||||||
// Print the version and exit.
|
// Print the version and exit.
|
||||||
if '-v' in args || 'version' in args {
|
if '-v' in args || '--version' in args || 'version' in args {
|
||||||
println('V $Version')
|
println('V $Version')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user