mirror of
https://github.com/fluencelabs/redis
synced 2025-05-02 14:02:14 +00:00
redis-cli: check argument existence for --pattern.
This commit is contained in:
parent
6ec3dc2c42
commit
1b2bcd4210
@ -731,7 +731,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user