Commit 6de2306a authored by antirez's avatar antirez
Browse files

Lua debugger: redis-cli error when --ldb is without --eval.

Otherwise the result is a messed CLI without prompt.
Thanks to Itamar Haber for reporting this issue.
parent e57cccde
...@@ -917,6 +917,13 @@ static int parseOptions(int argc, char **argv) { ...@@ -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; return i;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment