print version from main

This commit is contained in:
2024-05-26 12:33:16 +02:00
parent 2c246e9e4a
commit b0e3ff8d36
2 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"fmt"
"log"
"os"
@@ -36,6 +37,11 @@ func GetRLE(filename string) *rle.RLE {
func main() {
config := ParseCommandline()
if config.ShowVersion {
fmt.Printf("This is golsky version %s\n", VERSION)
os.Exit(0)
}
game := NewGame(config, Play)
// setup environment