Skip to content

Commit f85e079

Browse files
committed
optimize kubectl version help info
1 parent ad68c4a commit f85e079

File tree

1 file changed

+2
-2
lines changed
  • staging/src/k8s.io/kubectl/pkg/cmd/version

1 file changed

+2
-2
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/version/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ func NewCmdVersion(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *co
7979
cmdutil.CheckErr(o.Run())
8080
},
8181
}
82-
cmd.Flags().BoolVar(&o.ClientOnly, "client", o.ClientOnly, "Client version only (no server required).")
83-
cmd.Flags().BoolVar(&o.Short, "short", o.Short, "Print just the version number.")
82+
cmd.Flags().BoolVar(&o.ClientOnly, "client", o.ClientOnly, "If true, shows client version only (no server required).")
83+
cmd.Flags().BoolVar(&o.Short, "short", o.Short, "If true, print just the version number.")
8484
cmd.Flags().StringVarP(&o.Output, "output", "o", o.Output, "One of 'yaml' or 'json'.")
8585
return cmd
8686
}

0 commit comments

Comments
 (0)