forked from mirrors/statsd_exporter
Merge pull request #469 from don-philipe/Print-version-to-stdout
Print version, help etc to stdout
This commit is contained in:
commit
a92aa4556e
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -265,6 +265,7 @@ func main() {
|
||||||
promlogConfig := &promlog.Config{}
|
promlogConfig := &promlog.Config{}
|
||||||
flag.AddFlags(kingpin.CommandLine, promlogConfig)
|
flag.AddFlags(kingpin.CommandLine, promlogConfig)
|
||||||
kingpin.Version(version.Print("statsd_exporter"))
|
kingpin.Version(version.Print("statsd_exporter"))
|
||||||
|
kingpin.CommandLine.UsageWriter(os.Stdout)
|
||||||
kingpin.HelpFlag.Short('h')
|
kingpin.HelpFlag.Short('h')
|
||||||
kingpin.Parse()
|
kingpin.Parse()
|
||||||
logger := promlog.New(promlogConfig)
|
logger := promlog.New(promlogConfig)
|
||||||
|
|
Loading…
Reference in a new issue