Skip to content

Commit

Permalink
Merge pull request #2039 from dgl/usage-stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
dgl authored May 12, 2021
2 parents c3d8fc6 + 0387f55 commit f29590e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f29590e

Please sign in to comment.