Remove shorthand for client flag in kubectl version

This commit is contained in:
feihujiang
2015-10-12 11:18:27 +08:00
parent e2659fc645
commit 6290aee8b8
2 changed files with 3 additions and 2 deletions

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().MarkShorthandDeprecated("client", "please use --client instead.")
return cmd
}