This commit is contained in:
GopherPro 2022-04-07 16:20:20 +01:00 committed by GitHub
commit b643e15ba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ type versionFlags struct {
var versionArgs versionFlags var versionArgs versionFlags
func init() { func init() {
versionCmd.Flags().BoolVar(&versionArgs.client, "client", false, versionCmd.Flags().BoolVarP(&versionArgs.client, "client", "c", false,
"print only client version") "print only client version")
versionCmd.Flags().StringVarP(&versionArgs.output, "output", "o", "yaml", versionCmd.Flags().StringVarP(&versionArgs.output, "output", "o", "yaml",
"the format in which the information should be printed. can be 'json' or 'yaml'") "the format in which the information should be printed. can be 'json' or 'yaml'")