From e3708c3afab3198fe8179c773b7dc13cb338dd67 Mon Sep 17 00:00:00 2001 From: Peter Boothe Date: Wed, 12 Feb 2020 17:51:53 -0500 Subject: [PATCH] Actually parse the flags (#5) --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index f53963f..36452d9 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "sync" "time" + "github.com/m-lab/go/flagx" "github.com/m-lab/go/memoryless" "github.com/m-lab/go/warnonerror" @@ -40,6 +41,9 @@ var ( ) func main() { + flag.Parse() + rtx.Must(flagx.ArgsFromEnv(flag.CommandLine), "Could not get args from environment variables") + defer mainCancel() // A waitgroup that waits for every component goroutine to complete before main exits. wg := sync.WaitGroup{}