diff --git a/src/redis-cli.c b/src/redis-cli.c index 09fc28ad..40b74970 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -917,6 +917,13 @@ static int parseOptions(int argc, char **argv) { } } } + + /* --ldb requires --eval. */ + if (config.eval_ldb && config.eval == NULL) { + fprintf(stderr,"Options --ldb and --ldb-sync-mode require --eval.\n"); + fprintf(stderr,"Try %s --help for more information.\n", argv[0]); + exit(1); + } return i; }