mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-16 20:20:57 +01:00
print version from main
This commit is contained in:
6
main.go
6
main.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user