Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Commit

Permalink
Group flag variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorn committed Nov 23, 2018
1 parent df79cc6 commit deb5f95
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions cmd/booster/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,19 @@ var (
buildTime = "N/A"
)

// Commands
var printVersion = flag.Bool("version", false, "Prints version")
var (
// Commands
printVersion = flag.Bool("version", false, "Prints version")

// Proxy configuration
var port = flag.Int("port", 1080, "Server listening port")
var rawProto = flag.String("proto", "socks5", "Proxy protocol used. Available protocols: http, socks5.")
// Proxy configuration
port = flag.Int("port", 1080, "Server listening port")
rawProto = flag.String("proto", "socks5", "Proxy protocol used. Available protocols: http, socks5.")

// Log configuration
var verbose = flag.Bool("verbose", false, "If set, makes the logger print also debug messages")
var scope = flag.String("scope", "", "If set, enables debug logging only in the desired scope")
var externalLog = flag.Bool("external-log", false, "If set, assumes that the loggin is handled by a third party entity")
// Log configuration
verbose = flag.Bool("verbose", false, "If set, makes the logger print also debug messages")
scope = flag.String("scope", "", "If set, enables debug logging only in the desired scope")
externalLog = flag.Bool("external-log", false, "If set, assumes that the loggin is handled by a third party entity")
)

func main() {
// Parse arguments
Expand Down

0 comments on commit deb5f95

Please sign in to comment.