optimize kubectl version help info

Kubernetes-commit: f85e079147b65fe444ee60b9c302173ae169990a
This commit is contained in:
zhouya0 2020-02-19 16:45:37 +08:00 committed by Kubernetes Publisher
parent 5f9c4c388a
commit dcc99c8f57
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ func NewCmdVersion(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *co
cmdutil.CheckErr(o.Run())
},
}
cmd.Flags().BoolVar(&o.ClientOnly, "client", o.ClientOnly, "Client version only (no server required).")
cmd.Flags().BoolVar(&o.Short, "short", o.Short, "Print just the version number.")
cmd.Flags().BoolVar(&o.ClientOnly, "client", o.ClientOnly, "If true, shows client version only (no server required).")
cmd.Flags().BoolVar(&o.Short, "short", o.Short, "If true, print just the version number.")
cmd.Flags().StringVarP(&o.Output, "output", "o", o.Output, "One of 'yaml' or 'json'.")
return cmd
}