mirror of
https://github.com/prometheus/prometheus
synced 2025-01-11 17:19:45 +00:00
Prometheus and Promtool binaries now print help and usage to stdout (#8542)
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
This commit is contained in:
parent
0e24f246cc
commit
537c0aff49
@ -169,7 +169,7 @@ func main() {
|
||||
promlogConfig: promlog.Config{},
|
||||
}
|
||||
|
||||
a := kingpin.New(filepath.Base(os.Args[0]), "The Prometheus monitoring server")
|
||||
a := kingpin.New(filepath.Base(os.Args[0]), "The Prometheus monitoring server").UsageWriter(os.Stdout)
|
||||
|
||||
a.Version(version.Print("prometheus"))
|
||||
|
||||
|
@ -48,7 +48,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
app := kingpin.New(filepath.Base(os.Args[0]), "Tooling for the Prometheus monitoring system.")
|
||||
app := kingpin.New(filepath.Base(os.Args[0]), "Tooling for the Prometheus monitoring system.").UsageWriter(os.Stdout)
|
||||
app.Version(version.Print("promtool"))
|
||||
app.HelpFlag.Short('h')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user