1
0
forked from MTSR/mapserver
mapserver/params/params.go
NatureFreshMilk 0a13747950 json config
2019-01-18 09:03:57 +01:00

25 lines
345 B
Go

package params
import (
"flag"
)
type ParamsType struct {
Help bool
Version bool
}
func Parse() ParamsType {
params := ParamsType{}
flag.BoolVar(&(params.Help), "help", false, "Show help")
flag.BoolVar(&(params.Version), "version", false, "Show version")
flag.Parse()
return params
}
func PrintHelp(){
flag.PrintDefaults()
}