Skip to content

Commit

Permalink
Merge pull request #469 from don-philipe/Print-version-to-stdout
Browse files Browse the repository at this point in the history
Print version, help etc to stdout
  • Loading branch information
matthiasr authored Sep 22, 2022
2 parents aecad1a + 00d82da commit a92aa45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func main() {
promlogConfig := &promlog.Config{}
flag.AddFlags(kingpin.CommandLine, promlogConfig)
kingpin.Version(version.Print("statsd_exporter"))
kingpin.CommandLine.UsageWriter(os.Stdout)
kingpin.HelpFlag.Short('h')
kingpin.Parse()
logger := promlog.New(promlogConfig)
Expand Down

0 comments on commit a92aa45

Please sign in to comment.