From bb9c5182eae0e3ae8fd1cd08632c9c8d7e1f632a Mon Sep 17 00:00:00 2001 From: Kazuki Suda Date: Mon, 26 May 2025 12:16:24 +0900 Subject: [PATCH] Revert shorthand for kubectl explain --output Kubernetes-commit: df2857e7777f18c482359cfb43a72a3cdfd89646 --- pkg/cmd/explain/explain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/explain/explain.go b/pkg/cmd/explain/explain.go index 20847d094..d5b732826 100644 --- a/pkg/cmd/explain/explain.go +++ b/pkg/cmd/explain/explain.go @@ -89,7 +89,7 @@ func NewExplainFlags(streams genericiooptions.IOStreams) *ExplainFlags { func (flags *ExplainFlags) AddFlags(cmd *cobra.Command) { cmd.Flags().BoolVar(&flags.Recursive, "recursive", flags.Recursive, "Print the fields of fields (Currently only 1 level deep)") cmd.Flags().StringVar(&flags.APIVersion, "api-version", flags.APIVersion, "Get different explanations for particular API version (API group/version)") - cmd.Flags().StringVar(&flags.OutputFormat, "output", plaintextTemplateName, "Format in which to render the schema (plaintext, plaintext-openapiv2)") + cmd.Flags().StringVarP(&flags.OutputFormat, "output", "o", plaintextTemplateName, "Format in which to render the schema (plaintext, plaintext-openapiv2)") } // ToOptions converts from CLI inputs to runtime input