Handle --version arg as it already do for help
parent
e27a3b65f1
commit
2ca9866f86
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue