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 }