mapserver/main.go
2019-01-08 08:47:28 +01:00

31 lines
382 B
Go

package main
import (
"mapserver/params"
"mapserver/worldconfig"
"flag"
"fmt"
)
const (
Version = "2.0-DEV"
)
func main() {
p := params.Parse()
if p.Help {
flag.PrintDefaults()
return
}
if p.Version {
fmt.Print("Mapserver version: ")
fmt.Println(Version)
return
}
worldcfg := worldconfig.Parse(p.Worlddir + "world.mt")
fmt.Println("Config ", worldcfg)
}