Skip to content

Commit

Permalink
Using EnumVar instead of StringVar
Browse files Browse the repository at this point in the history
Signed-off-by: Syed Imam <[email protected]>
  • Loading branch information
syedimam0012 authored and syedimam0012 committed Jan 30, 2019
1 parent 18814d5 commit 6c237b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func init() {
kingpin.Flag("debug", "Enable debug logging.").BoolVar(&debug)
kingpin.Flag("metrics-address", "Listening address for metrics handler").Default(":8080").StringVar(&metricsAddress)
kingpin.Flag("grace-period", "Grace period to terminate Pods. Negative values will use the Pod's grace period.").Default("-1s").DurationVar(&gracePeriod)
kingpin.Flag("log-format", "Select log format options").Default("text").StringVar(&logFormat)
kingpin.Flag("log-format", "Select log format options").Default("text").EnumVar(&logFormat, "text", "json")
}

func main() {
Expand Down

0 comments on commit 6c237b5

Please sign in to comment.