diff options
author | Binbin <binloveplay1314@qq.com> | 2021-06-15 15:01:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 10:01:11 +0300 |
commit | b1099773018510fed346be3f774852b65fa87a59 (patch) | |
tree | 96cbad5c82324e583b4b79666e5ad0447476c9c4 /src/t_stream.c | |
parent | 096c5fd5d22caa2c21a4863cbaaf64fd8e7107d2 (diff) | |
download | redis-b1099773018510fed346be3f774852b65fa87a59.tar.gz |
Fix XINFO help for unexpected options. (#9075)
Small cleanup and consistency.
Diffstat (limited to 'src/t_stream.c')
-rw-r--r-- | src/t_stream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/t_stream.c b/src/t_stream.c index f3cfeb0b2..68836bf15 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -3459,6 +3459,11 @@ void xinfoCommand(client *c) { /* HELP is special. Handle it ASAP. */ if (!strcasecmp(c->argv[1]->ptr,"HELP")) { + if (c->argc != 2) { + addReplySubcommandSyntaxError(c); + return; + } + const char *help[] = { "CONSUMERS <key> <groupname>", " Show consumers of <groupname>.", |