Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

redis-cli: check argument existence for --pattern.

  • Loading branch information...
commit 5580350a7b179bffc96b277dca2958c64ac773a8 1 parent c1d67ea
@antirez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/redis-cli.c
View
2  src/redis-cli.c
@@ -732,7 +732,7 @@ static int parseOptions(int argc, char **argv) {
config.stat_mode = 1;
} else if (!strcmp(argv[i],"--scan")) {
config.scan_mode = 1;
- } else if (!strcmp(argv[i],"--pattern")) {
+ } else if (!strcmp(argv[i],"--pattern") && !lastarg) {
config.pattern = argv[++i];
} else if (!strcmp(argv[i],"--intrinsic-latency") && !lastarg) {
config.intrinsic_latency_mode = 1;
Please sign in to comment.
Something went wrong with that request. Please try again.