Skip to content

Commit be4495d

Browse files
superbrothersk8s-publishing-bot
authored andcommitted
Revert shorthand for kubectl explain --output
Kubernetes-commit: 060a4985376ecfa3dd277ff8fe63e6158041c32e
1 parent 3432650 commit be4495d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/explain/explain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func NewExplainFlags(streams genericiooptions.IOStreams) *ExplainFlags {
8989
func (flags *ExplainFlags) AddFlags(cmd *cobra.Command) {
9090
cmd.Flags().BoolVar(&flags.Recursive, "recursive", flags.Recursive, "Print the fields of fields (Currently only 1 level deep)")
9191
cmd.Flags().StringVar(&flags.APIVersion, "api-version", flags.APIVersion, "Get different explanations for particular API version (API group/version)")
92-
cmd.Flags().StringVar(&flags.OutputFormat, "output", plaintextTemplateName, "Format in which to render the schema (plaintext, plaintext-openapiv2)")
92+
cmd.Flags().StringVarP(&flags.OutputFormat, "output", "o", plaintextTemplateName, "Format in which to render the schema (plaintext, plaintext-openapiv2)")
9393
}
9494

9595
// ToOptions converts from CLI inputs to runtime input

0 commit comments

Comments
 (0)