Skip to content

Commit

Permalink
rpk: improve help text of rpk version
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vasquez committed Oct 23, 2024
1 parent f8f0b54 commit dcfe7db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/go/rpk/pkg/cli/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ This command prints the current rpk version and allows you to list the Redpanda
version running on each node in your cluster.
To list the Redpanda version of each node in your cluster you may pass the
Admin API hosts via flags, profile, or environment variables.`,
Admin API hosts using flags, profile, or environment variables.
To get only the rpk version, use 'rpk --version'.`,
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, _ []string) {
rv := rpkVersion{
Expand Down Expand Up @@ -131,7 +133,9 @@ func printClusterVersions(rpv *redpandaVersions) {
if len(*rpv) == 0 {
fmt.Println(` Unreachable, to debug, use the '-v' flag. To get the broker versions, pass the
hosts via flags, profile, or environment variables:
rpk version -X admin.hosts=<host address>`)
rpk version -X admin.hosts=<host address>
To get only the rpk version, use 'rpk --version'.`)
return
}
for _, v := range *rpv {
Expand Down

0 comments on commit dcfe7db

Please sign in to comment.