feat: 支持强制daemon

This commit is contained in:
Mmx
2021-12-01 22:24:19 +08:00
parent 4fc8a5f8c1
commit b39f12c17c
2 changed files with 3 additions and 1 deletions

View File

@@ -7,10 +7,12 @@ import (
var Flags struct {
Path string
RunningDaemon bool
Daemon bool
}
func initFlags() {
flag.StringVar(&Flags.Path, "config", "Config.json", "config path")
flag.BoolVar(&Flags.RunningDaemon, "running-daemon", false, "")
flag.BoolVar(&Flags.Daemon, "daemon", false, "")
flag.Parse()
}