mirror of
https://github.com/fluencelabs/redis
synced 2025-06-23 14:01:34 +00:00
added quit and exit commands to redis-cli in order to quit the interactive mode
This commit is contained in:
@ -460,6 +460,8 @@ static void repl() {
|
||||
for (ap = args; (*ap = strsep(&line, " \t")) != NULL;) {
|
||||
if (**ap != '\0') {
|
||||
if (argc >= max) break;
|
||||
if (strcasecmp(*ap,"quit") == 0 || strcasecmp(*ap,"exit") == 0)
|
||||
exit(0);
|
||||
ap++;
|
||||
argc++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user