diff options
author | Jan-Erik Rediger <janerik@fnordig.de> | 2017-01-08 18:27:00 +0100 |
---|---|---|
committer | Jan-Erik Rediger <janerik@fnordig.de> | 2017-01-08 18:29:22 +0100 |
commit | afaaa9188537b7651b7e42dfe3e9f340af819a0f (patch) | |
tree | 126682fc59c631de8c7fb93cc089b70d9a0d989a | |
parent | 6712bce92c79de5c2caa38e9b597a3fa52fd497f (diff) | |
download | redis-afaaa9188537b7651b7e42dfe3e9f340af819a0f.tar.gz |
Initialize help only in repl mode
-rw-r--r-- | src/redis-cli.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index ac4358220..2a9dff712 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1273,6 +1273,11 @@ static void repl(void) { int argc; sds *argv; + /* Initialize the help and, if possible, use the COMMAND command in order + * to retrieve missing entries. */ + cliInitHelp(); + cliIntegrateHelp(); + config.interactive = 1; linenoiseSetMultiLine(1); linenoiseSetCompletionCallback(completionCallback); @@ -2606,11 +2611,6 @@ int main(int argc, char **argv) { argc -= firstarg; argv += firstarg; - /* Initialize the help and, if possible, use the COMMAND command in order - * to retrieve missing entries. */ - cliInitHelp(); - cliIntegrateHelp(); - /* Latency mode */ if (config.latency_mode) { if (cliConnect(0) == REDIS_ERR) exit(1); |