Skip to content

Commit

Permalink
Simplify declaration of command-line flags (bfenetworks#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
qloog authored May 13, 2021
1 parent d15e70b commit ba96085
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ import (
)

var (
help *bool = flag.Bool("h", false, "to show help")
confRoot *string = flag.String("c", "./conf", "root path of configuration")
logPath *string = flag.String("l", "./log", "dir path of log")
stdOut *bool = flag.Bool("s", false, "to show log in stdout")
showVersion *bool = flag.Bool("v", false, "to show version of bfe")
showVerbose *bool = flag.Bool("V", false, "to show verbose information about bfe")
debugLog *bool = flag.Bool("d", false, "to show debug log (otherwise >= info)")
help = flag.Bool("h", false, "to show help")
confRoot = flag.String("c", "./conf", "root path of configuration")
logPath = flag.String("l", "./log", "dir path of log")
stdOut = flag.Bool("s", false, "to show log in stdout")
showVersion = flag.Bool("v", false, "to show version of bfe")
showVerbose = flag.Bool("V", false, "to show verbose information about bfe")
debugLog = flag.Bool("d", false, "to show debug log (otherwise >= info)")
)

var version string
Expand Down

0 comments on commit ba96085

Please sign in to comment.