diff --git a/internal/cmd/util/util.go b/internal/cmd/util/util.go index 195ba9c7..dd62a127 100644 --- a/internal/cmd/util/util.go +++ b/internal/cmd/util/util.go @@ -195,6 +195,9 @@ func ValidateRequiredFlags(flags *pflag.FlagSet, names ...string) error { // AddGroup adds a group to the passed command and adds the passed commands to the group. func AddGroup(cmd *cobra.Command, id string, title string, groupCmds ...*cobra.Command) { + if !strings.HasSuffix(title, ":") { + title += ":" + } cmd.AddGroup(&cobra.Group{ID: id, Title: title}) for _, groupCmd := range groupCmds { groupCmd.GroupID = id