Skip to content

Commit b418696

Browse files
authored
moving flag.Parse() from init to main function(s) fixes #309 (#334)
1 parent 8087be7 commit b418696

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cmd/proxy/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ var (
253253
)
254254

255255
func main() {
256+
flag.Parse()
256257
martian.Init()
257258

258259
p := martian.NewProxy()

init.go

-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ var (
2626

2727
// Init runs common initialization code for a martian proxy.
2828
func Init() {
29-
flag.Parse()
3029
mlog.SetLevel(*level)
3130
}

0 commit comments

Comments
 (0)