From 0387f55a9b9bc5ed2e01911afc6432da1d077d38 Mon Sep 17 00:00:00 2001 From: David Leadbeater Date: Tue, 11 May 2021 15:19:34 +0100 Subject: [PATCH] Make node_exporter print usage to STDOUT Matches updated behaviour in Prometheus and other tools. Signed-off-by: David Leadbeater --- node_exporter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/node_exporter.go b/node_exporter.go index 2347a490..0e5e680e 100644 --- a/node_exporter.go +++ b/node_exporter.go @@ -168,6 +168,7 @@ func main() { promlogConfig := &promlog.Config{} flag.AddFlags(kingpin.CommandLine, promlogConfig) kingpin.Version(version.Print("node_exporter")) + kingpin.CommandLine.UsageWriter(os.Stdout) kingpin.HelpFlag.Short('h') kingpin.Parse() logger := promlog.New(promlogConfig)