Merge pull request #88084 from soltysh/issue809

Don't show flags in api-versions help
This commit is contained in:
Kubernetes Prow Robot 2020-02-12 17:55:12 -08:00 committed by GitHub
commit c2f08b8552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,7 @@ func NewCmdAPIVersions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams)
Short: "Print the supported API versions on the server, in the form of \"group/version\"", 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\"", Long: "Print the supported API versions on the server, in the form of \"group/version\"",
Example: apiversionsExample, Example: apiversionsExample,
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
cmdutil.CheckErr(o.Complete(f, cmd, args)) cmdutil.CheckErr(o.Complete(f, cmd, args))
cmdutil.CheckErr(o.RunAPIVersions()) cmdutil.CheckErr(o.RunAPIVersions())