mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
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.
This commit is contained in:
parent
e57cccdefb
commit
6de2306add
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user