Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
389b9f59
Commit
389b9f59
authored
Jan 08, 2017
by
Jan-Erik Rediger
Committed by
antirez
Jan 27, 2017
Browse files
Initialize help only in repl mode
parent
1370a888
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
389b9f59
...
@@ -1271,6 +1271,11 @@ static void repl(void) {
...
@@ -1271,6 +1271,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);
...
@@ -2601,11 +2606,6 @@ int main(int argc, char **argv) {
...
@@ -2601,11 +2606,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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment