From f55f8370ebf0db6db629641337cd78ad7f120865 Mon Sep 17 00:00:00 2001 From: Vaibhav Malik <34866732+VaibhavMalik4187@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:18:16 +0530 Subject: [PATCH] fix: shorthand for the http flag in serve command (#969) Removed the shorthand for the `http` flag in the serve command because it was contradicting with the shorthand of the `help` command which is automatically added on execution if the `help` flag is not already defined. Fixes: https://github.com/k8sgpt-ai/k8sgpt/issues/968 Signed-off-by: VaibhavMalik4187 --- cmd/serve/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/serve/serve.go b/cmd/serve/serve.go index 3c3e58fc1a..95ad986594 100644 --- a/cmd/serve/serve.go +++ b/cmd/serve/serve.go @@ -160,5 +160,5 @@ func init() { ServeCmd.Flags().StringVarP(&port, "port", "p", "8080", "Port to run the server on") ServeCmd.Flags().StringVarP(&metricsPort, "metrics-port", "", "8081", "Port to run the metrics-server on") ServeCmd.Flags().StringVarP(&backend, "backend", "b", "openai", "Backend AI provider") - ServeCmd.Flags().BoolVarP(&enableHttp, "http", "h", false, "Enable REST/http using gppc-gateway") + ServeCmd.Flags().BoolVarP(&enableHttp, "http", "", false, "Enable REST/http using gppc-gateway") }