From e10402e591faa1d3f3d6190b8aaca69751766d86 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Wed, 12 Feb 2020 18:31:05 +0100 Subject: [PATCH] Don't show flags in api-versions help Kubernetes-commit: 8ff6b24c5736d7b2ce31319ae950a806f2325327 --- pkg/cmd/apiresources/apiversions.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/apiresources/apiversions.go b/pkg/cmd/apiresources/apiversions.go index 06ec98d7..413550cd 100644 --- a/pkg/cmd/apiresources/apiversions.go +++ b/pkg/cmd/apiresources/apiversions.go @@ -54,10 +54,11 @@ func NewAPIVersionsOptions(ioStreams genericclioptions.IOStreams) *APIVersionsOp func NewCmdAPIVersions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command { o := NewAPIVersionsOptions(ioStreams) cmd := &cobra.Command{ - Use: "api-versions", - Short: "Print the supported API versions on the server, in the form of \"group/version\"", - Long: "Print the supported API versions on the server, in the form of \"group/version\"", - Example: apiversionsExample, + Use: "api-versions", + Short: "Print the supported API versions on the server, in the form of \"group/version\"", + Long: "Print the supported API versions on the server, in the form of \"group/version\"", + Example: apiversionsExample, + DisableFlagsInUseLine: true, Run: func(cmd *cobra.Command, args []string) { cmdutil.CheckErr(o.Complete(f, cmd, args)) cmdutil.CheckErr(o.RunAPIVersions())