Handle --version arg as it already do for help

pull/913/head
yep84 2019-07-01 21:51:51 +02:00 committed by Alexander Medvednikov
parent e27a3b65f1
commit 2ca9866f86
1 changed files with 1 additions and 1 deletions

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
}