1
0
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:
yep84 2019-07-01 21:51:51 +02:00 committed by Alexander Medvednikov
parent e27a3b65f1
commit 2ca9866f86

View File

@ -95,7 +95,7 @@ mut:
fn main() {
args := os.args
// 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')
return
}