Skip to content

Commit

Permalink
Actually parse the flags (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
pboothe authored Feb 12, 2020
1 parent 1fc8c0a commit e3708c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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{}
Expand Down

0 comments on commit e3708c3

Please sign in to comment.