mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Don't show flags in api-versions help
This commit is contained in:
parent
50c8f73a4b
commit
8ff6b24c57
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user