nmdc-telegramfrontend/main.go

26 lines
372 B
Go
Raw Normal View History

2018-06-03 03:27:50 +00:00
package main
import (
"flag"
"log"
)
func main() {
configFile := flag.String("ConfigFile", "config.json", "")
verbose := flag.Bool("Verbose", false, "")
2018-06-03 03:27:50 +00:00
flag.Parse()
svr, err := NewNTFServer(*configFile, *verbose)
2018-06-03 03:27:50 +00:00
if err != nil {
log.Fatal(err.Error())
}
err = svr.Run()
if err != nil {
log.Fatal(err.Error())
}
log.Println("Server shutting down")
}