Commit d21aabce authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #3734 from badboy/avoid-command

Initialize help only in repl mode
parents 636c693f afaaa918
...@@ -1273,6 +1273,11 @@ static void repl(void) { ...@@ -1273,6 +1273,11 @@ static void repl(void) {
int argc; int argc;
sds *argv; sds *argv;
/* Initialize the help and, if possible, use the COMMAND command in order
* to retrieve missing entries. */
cliInitHelp();
cliIntegrateHelp();
config.interactive = 1; config.interactive = 1;
linenoiseSetMultiLine(1); linenoiseSetMultiLine(1);
linenoiseSetCompletionCallback(completionCallback); linenoiseSetCompletionCallback(completionCallback);
...@@ -2606,11 +2611,6 @@ int main(int argc, char **argv) { ...@@ -2606,11 +2611,6 @@ int main(int argc, char **argv) {
argc -= firstarg; argc -= firstarg;
argv += firstarg; argv += firstarg;
/* Initialize the help and, if possible, use the COMMAND command in order
* to retrieve missing entries. */
cliInitHelp();
cliIntegrateHelp();
/* Latency mode */ /* Latency mode */
if (config.latency_mode) { if (config.latency_mode) {
if (cliConnect(0) == REDIS_ERR) exit(1); if (cliConnect(0) == REDIS_ERR) exit(1);
......
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