mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-23 12:30:46 +01:00
Make node_exporter print usage to STDOUT
Matches updated behaviour in Prometheus and other tools. Signed-off-by: David Leadbeater <dgl@dgl.cx>
This commit is contained in:
parent
c3d8fc6051
commit
0387f55a9b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user