mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Merge pull request #3734 from badboy/avoid-command
Initialize help only in repl mode
This commit is contained in:
commit
d21aabcedc
@ -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) {
|
|||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user