From 2ca9866f8621b5d10a9317ec45a078dacc56fa8a Mon Sep 17 00:00:00 2001 From: yep84 <52426534+yep84@users.noreply.github.com> Date: Mon, 1 Jul 2019 21:51:51 +0200 Subject: [PATCH] Handle --version arg as it already do for help --- compiler/main.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/main.v b/compiler/main.v index dafc6629e7..e738599b39 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -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 }