Skip to content

Commit

Permalink
Merge pull request #651 from prometheus/beorn7/cmd
Browse files Browse the repository at this point in the history
Print --version to stdout, not stderr
  • Loading branch information
beorn7 authored Jun 5, 2024
2 parents 645ec4b + 6ed5462 commit 3345da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (lf logFunc) Println(v ...interface{}) {

func main() {
var (
app = kingpin.New(filepath.Base(os.Args[0]), "The Pushgateway")
app = kingpin.New(filepath.Base(os.Args[0]), "The Pushgateway").UsageWriter(os.Stdout)
webConfig = webflag.AddFlags(app, ":9091")
metricsPath = app.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String()
externalURL = app.Flag("web.external-url", "The URL under which the Pushgateway is externally reachable.").Default("").URL()
Expand Down

0 comments on commit 3345da6

Please sign in to comment.