Skip to content

Commit

Permalink
Use kingpin.Flag instead of Arg for port param.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieltg committed Nov 1, 2019
1 parent 7516e8f commit f1f2212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lxd_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
var (
version = "staging-UNVERSIONED"

port = kingpin.Arg(
port = kingpin.Flag(
"port", "Provide the port to listen on").Default("9472").Int16()
)

Expand Down

0 comments on commit f1f2212

Please sign in to comment.