Remove shorthand for client flag in kubectl version

pull/6/head
feihujiang 2015-10-12 11:18:27 +08:00
parent e2659fc645
commit 6290aee8b8
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ kubectl version
### Options ### Options
``` ```
-c, --client[=false]: Client version only (no server required). --client[=false]: Client version only (no server required).
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
@ -82,7 +82,7 @@ kubectl version
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager * [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-09-22 12:53:42.294832043 +0000 UTC ###### Auto generated by spf13/cobra on 12-Oct-2015
<!-- BEGIN MUNGE: GENERATED_ANALYTICS --> <!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_version.md?pixel)]() [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_version.md?pixel)]()

View File

@ -35,6 +35,7 @@ func NewCmdVersion(f *cmdutil.Factory, out io.Writer) *cobra.Command {
}, },
} }
cmd.Flags().BoolP("client", "c", false, "Client version only (no server required).") cmd.Flags().BoolP("client", "c", false, "Client version only (no server required).")
cmd.Flags().MarkShorthandDeprecated("client", "please use --client instead.")
return cmd return cmd
} }