mirror of
https://github.com/prometheus/prometheus
synced 2026-04-20 22:41:05 +08:00
promtool: Fix query command help to show valid format options
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user