Skip to content

Commit 343ccde

Browse files
authored
Merge pull request kubernetes#88313 from zhouya0/optimize_kubectl_version_help_info
Optimize kubectl version help info
2 parents c3db17f + f85e079 commit 343ccde

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)