修订cmd,gui,apiServer代码

This commit is contained in:
e1732a364fed
2000-01-01 00:00:00 +00:00
parent 7764155118
commit 354d1db459
9 changed files with 82 additions and 30 deletions

View File

@@ -44,6 +44,15 @@ type exitCmd struct {
}
func init() {
flag.BoolVar(&download, "d", false, " automatically download required mmdb file")
//apiServer stuff
//defaultApiServerConf.SetupFlags()
}
func initExitCmds() {
for i, ec := range exitCmds {
if ec.isStr {
flag.StringVar(&exitCmds[i].strValue, ec.name, ec.defaultStringValue, ec.desc)
@@ -54,11 +63,6 @@ func init() {
}
}
flag.BoolVar(&download, "d", false, " automatically download required mmdb file")
//apiServer stuff
//defaultApiServerConf.SetupFlags()
}
// 运行一些 执行后立即退出程序的 命令