Skip to content

Commit 94e4e32

Browse files
committed
Fix default command usage for get consumer-groups
1 parent f9e832e commit 94e4e32

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/get/get_consumer_groups.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ type GroupOffset struct {
4646

4747
func (cmd *command) GetConsumerGroupsCmd() *cobra.Command {
4848
return &cobra.Command{
49-
Use: "consumers [name]...",
49+
Use: "consumer-group [name]...",
5050
Args: cobra.MaximumNArgs(1),
51-
Aliases: []string{"consumer", "consumer-groups", "consumer-group"},
51+
Aliases: []string{"consumer-groups", "consumer", "consumers", "group", "groups"},
5252
Short: "List all consumer groups or display information only for a specific consumer group",
5353
Example: `
5454
# Show a table of all consumer groups
55-
kafkactl get consumers
55+
kafkactl get consumer-group
5656
5757
# Show only the consumers named "example1" and example"3"
58-
kafkactl get consumers example1 example3
58+
kafkactl get consumer-group example1 example3
5959
6060
# Show all information about a specific consumer group as JSON
61-
kafkactl get consumer "example-consumer" -o json`,
61+
kafkactl get consumer-group "example-consumer" -o json`,
6262
RunE: func(_ *cobra.Command, args []string) error {
6363
var name string
6464
if len(args) > 0 {

0 commit comments

Comments
 (0)