Merge pull request #119303 from abidmunirmalik/kubectl_doc_fix

fixes the issue in the documentation of kubectl events

Kubernetes-commit: 0b63390addcb372b5f7d0a7f9fd28e0758e5684d
This commit is contained in:
Kubernetes Publisher 2023-10-01 09:50:44 -07:00
commit 654e18cb7b
1 changed files with 1 additions and 1 deletions

View File

@ -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,