clients: add type option for client list

This commit is contained in:
zhaozhao.zz
2018-06-28 17:43:05 +08:00
parent f5538642cc
commit b9cbd04b57
4 changed files with 20 additions and 6 deletions

View File

@ -1088,7 +1088,7 @@ static int cliSendCommand(int argc, char **argv, long repeat) {
(argc == 2 && !strcasecmp(command,"cluster") &&
(!strcasecmp(argv[1],"nodes") ||
!strcasecmp(argv[1],"info"))) ||
(argc == 2 && !strcasecmp(command,"client") &&
(argc >= 2 && !strcasecmp(command,"client") &&
!strcasecmp(argv[1],"list")) ||
(argc == 3 && !strcasecmp(command,"latency") &&
!strcasecmp(argv[1],"graph")) ||