Merge pull request #88313 from zhouya0/optimize_kubectl_version_help_info

Optimize kubectl version help info
This commit is contained in:
Kubernetes Prow Robot 2020-02-19 16:11:45 -08:00 committed by GitHub
commit 343ccdebdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}