From 64fc8b1f6789a9113cc80250df1ae96ec952245e Mon Sep 17 00:00:00 2001 From: Abid Malik Date: Thu, 13 Jul 2023 13:10:33 -0400 Subject: [PATCH] fixes the issue in the documentation of kubectl events Signed-off-by: Abid Malik Kubernetes-commit: d8c145d20da7906722798218652583dea34b48bb --- pkg/cmd/events/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/events/events.go b/pkg/cmd/events/events.go index 1830d28f..cb4e0e60 100644 --- a/pkg/cmd/events/events.go +++ b/pkg/cmd/events/events.go @@ -121,7 +121,7 @@ func NewCmdEvents(restClientGetter genericclioptions.RESTClientGetter, streams g flags := NewEventsFlags(restClientGetter, streams) cmd := &cobra.Command{ - Use: fmt.Sprintf("events [(-o|--output=)%s] [--for TYPE/NAME] [--watch] [--event=Normal,Warning]", strings.Join(flags.PrintFlags.AllowedFormats(), "|")), + Use: fmt.Sprintf("events [(-o|--output=)%s] [--for TYPE/NAME] [--watch] [--types=Normal,Warning]", strings.Join(flags.PrintFlags.AllowedFormats(), "|")), DisableFlagsInUseLine: true, Short: i18n.T("List events"), Long: eventsLong,