@@ -20,12 +20,12 @@ func main() {
2020 var logRecord string
2121 var logPrint string
2222
23- flag .BoolVar (& daemonProc , " daemon" , false , "runs the webby server daemon process rather than behaving like a control application" )
24- flag .BoolVar (& reload , "reload" , false , "reloads the configuration file and then restarts, this will reset log levels" )
25- flag .BoolVar (& restart , "restart" , false , "restarts the webby HTTP server, rescanning directories" )
26- flag .BoolVar (& stop , "stop" , false , "stops the running daemon" )
27- flag .StringVar (& logRecord , "log-record" , "" , "sets the log level to record to file, defaults to 'All'" )
28- flag .StringVar (& logPrint , "log-print" , "" , "sets the log level to print to standard out, defaults to 'All'" )
23+ flag .BoolVar (& daemonProc , daemon . Daemon , false , "runs the webby server daemon process rather than behaving like a control application" )
24+ flag .BoolVar (& reload , daemon . Reload , false , "reloads the configuration file and then restarts, this will reset log levels" )
25+ flag .BoolVar (& restart , daemon . Restart , false , "restarts the webby HTTP server, rescanning directories" )
26+ flag .BoolVar (& stop , daemon . Stop , false , "stops the running daemon" )
27+ flag .StringVar (& logRecord , daemon . LogRecord , "" , "sets the log level to record to file, defaults to 'All'" )
28+ flag .StringVar (& logPrint , daemon . LogPrint , "" , "sets the log level to print to standard out, defaults to 'All'" )
2929
3030 flag .Parse ()
3131
0 commit comments