Add to rather than replace flags with -c.

This commit is contained in:
nicm 2020-03-30 15:49:23 +00:00
parent c713b65b9e
commit 34de379c7d

View File

@ -251,7 +251,7 @@ client_main(struct event_base *base, int argc, char **argv, int flags)
/* Set up the initial command. */ /* Set up the initial command. */
if (shell_command != NULL) { if (shell_command != NULL) {
msg = MSG_SHELL; msg = MSG_SHELL;
flags = CLIENT_STARTSERVER; flags |= CLIENT_STARTSERVER;
} else if (argc == 0) { } else if (argc == 0) {
msg = MSG_COMMAND; msg = MSG_COMMAND;
flags |= CLIENT_STARTSERVER; flags |= CLIENT_STARTSERVER;