working commit
This commit is contained in:
@@ -97,8 +97,10 @@ func (conf *Config) ReadOptions() error {
|
||||
var err error
|
||||
exename := filepath.Base(os.Args[0])
|
||||
|
||||
flag.Int64Var(&conf.Service.Port, "port", conf.Service.Port, "listen port")
|
||||
flag.BoolVar(&conf.AsDaemon, "daemon", conf.AsDaemon, "run as daemon")
|
||||
// TODO: make local scope of flags
|
||||
|
||||
//flag.Int64Var(&conf.Service.Port, "port", conf.Service.Port, "listen port")
|
||||
//flag.BoolVar(&conf.AsDaemon, "daemon", conf.AsDaemon, "run as daemon")
|
||||
|
||||
help := func() {
|
||||
fmt.Println("")
|
||||
|
||||
Reference in New Issue
Block a user