go-ddns-svc/main.go

29 lines
354 B
Go
Raw Normal View History

2019-04-30 14:04:51 +00:00
package main
import (
"flag"
"log"
"git.trj.tw/golang/go-ddns-svc/module/config"
"git.trj.tw/golang/go-ddns-svc/module/option"
)
func init() {
option.RegOptions()
}
func main() {
var err error
opts := option.GetOptions()
if opts.Help {
flag.Usage()
return
}
err = config.LoadConfig(opts.Config)
if err != nil {
log.Fatal(err)
}
}