From b1682e929d9e9a2966f8b8a5b1ac71fb4ddd33cd Mon Sep 17 00:00:00 2001 From: Dirk Loss Date: Thu, 27 Jun 2019 22:04:54 +0200 Subject: [PATCH] Add '-v' option as described in help text --- compiler/main.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/main.v b/compiler/main.v index 153a3abb2a..5174f66221 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -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 }