style: 修改daemon标记flag

This commit is contained in:
Mmx
2021-12-01 22:22:22 +08:00
parent dbfc802e82
commit 4fc8a5f8c1
3 changed files with 5 additions and 5 deletions

View File

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