promtool: Fix query command help to show valid format options

This commit is contained in:
Julius (Agent)
2026-02-20 18:41:14 +01:00
parent 948b52e6a4
commit fc87cee375

View File

@@ -173,7 +173,7 @@ func main() {
agentMode := checkConfigCmd.Flag("agent", "Check config file for Prometheus in Agent mode.").Bool()
queryCmd := app.Command("query", "Run query against a Prometheus server.")
queryCmdFmt := queryCmd.Flag("format", "Output format of the query.").Short('o').Default("promql").Enum("promql", "json")
queryCmdFmt := queryCmd.Flag("format", "Output format of the query (promql (default) or json).").Short('o').Default("promql").Enum("promql", "json")
queryCmd.Flag("http.config.file", httpConfigFileDescription).PlaceHolder("<filename>").ExistingFileVar(&httpConfigFilePath)
queryInstantCmd := queryCmd.Command("instant", "Run instant query.")