mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
More config cleanups for #86
This commit is contained in:
@@ -49,18 +49,18 @@ func init() {
|
||||
|
||||
func main() {
|
||||
// Command line flags.
|
||||
help := flag.Bool("help", false, "Displays this help")
|
||||
pidfile := flag.String("pidfile", "", "Write our PID into the specified file")
|
||||
logfile := flag.String("logfile", "stderr", "Write out log into the specified file")
|
||||
help := flag.Bool("help", false, "Displays help on flags and env variables.")
|
||||
pidfile := flag.String("pidfile", "", "Write our PID into the specified file.")
|
||||
logfile := flag.String("logfile", "stderr", "Write out log into the specified file.")
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintln(os.Stderr, "Usage: inbucket [options]")
|
||||
flag.PrintDefaults()
|
||||
fmt.Fprintln(os.Stderr, "")
|
||||
config.Usage()
|
||||
}
|
||||
flag.Parse()
|
||||
if *help {
|
||||
flag.Usage()
|
||||
fmt.Fprintln(os.Stderr, "")
|
||||
config.Usage()
|
||||
return
|
||||
}
|
||||
// Process configuration.
|
||||
|
||||
Reference in New Issue
Block a user