Skip to content

Commit

Permalink
Use autoflags.Parse shortcut call
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Pervukhin committed Mar 13, 2017
1 parent d1c3570 commit 87e86d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions leproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package main
import (
"bytes"
"crypto/tls"
"flag"
"fmt"
"io"
"io/ioutil"
Expand Down Expand Up @@ -42,8 +41,7 @@ func main() {
RTo: time.Minute,
WTo: 5 * time.Minute,
}
autoflags.Define(&params)
flag.Parse()
autoflags.Parse(&params)
if params.Cache == "" {
log.Fatal("no cache specified")
}
Expand Down

0 comments on commit 87e86d0

Please sign in to comment.