Skip to content

Commit

Permalink
Lua debugger: redis-cli error when --ldb is without --eval.
Browse files Browse the repository at this point in the history
Otherwise the result is a messed CLI without prompt.
Thanks to Itamar Haber for reporting this issue.
  • Loading branch information
antirez committed Nov 17, 2015
1 parent e57cccd commit 6de2306
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/redis-cli.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6de2306

Please sign in to comment.