Skip to content

Commit

Permalink
Remove useless default indications
Browse files Browse the repository at this point in the history
  • Loading branch information
alkanna committed Feb 2, 2021
1 parent 01c1ff3 commit 13ef8a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ func main() {
"response-code": "rc",
}

var endpoint = flag.String("uri", "http://localhost", "URI, with protocol and no port. Defaults to http://localhost")
var port = flag.Int("port", 80, "Port to use. Defaults to 80")
var timeout = flag.Int("timeout", 10000, "Timeout before returning a non 0 exit code, in milliseconds. Defaults to 10000ms")
var interval = flag.Int("interval", 1000, "Polling interval, in milliseconds. Defaults to 1000ms")
var responseCode = flag.Int("response-code", 200, "Response code to wait for. Defaults to 200")
var endpoint = flag.String("uri", "http://localhost", "URI, with protocol and no port.")
var port = flag.Int("port", 80, "Port to use.")
var timeout = flag.Int("timeout", 10000, "Timeout before returning a non 0 exit code, in milliseconds.")
var interval = flag.Int("interval", 1000, "Polling interval, in milliseconds.")
var responseCode = flag.Int("response-code", 200, "Response code to wait for.")

for from, to := range flagAlias {
flagSet := flag.Lookup(from)
Expand Down

0 comments on commit 13ef8a6

Please sign in to comment.