Add '-v' option as described in help text

pull/726/head
Dirk Loss 2019-06-27 22:04:54 +02:00 committed by Alexander Medvednikov
parent f6cf724571
commit b1682e929d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}