mirror of
https://github.com/redis/redis.git
synced 2026-02-03 20:39:54 -05:00
Merge d95dfcc8c3 into b5a37c0e42
This commit is contained in:
commit
7fca081d74
2 changed files with 2 additions and 0 deletions
|
|
@ -1169,6 +1169,7 @@ static sds addHintForRepeatedArgument(sds hint, cliCommandArg *arg) {
|
|||
hint = sdscat(hint, "[");
|
||||
|
||||
if (arg->flags & CMD_ARG_MULTIPLE_TOKEN) {
|
||||
assert(arg->token);
|
||||
hint = sdscat_orempty(hint, arg->token);
|
||||
if (arg->type != ARG_TYPE_PURE_TOKEN) {
|
||||
hint = sdscat(hint, " ");
|
||||
|
|
|
|||
|
|
@ -207,6 +207,7 @@ class Argument(object):
|
|||
s += "CMD_ARG_MULTIPLE|"
|
||||
if self.desc.get("multiple_token", False):
|
||||
assert self.desc.get("multiple", False) # Sanity
|
||||
assert "token" in self.desc
|
||||
s += "CMD_ARG_MULTIPLE_TOKEN|"
|
||||
return s[:-1] if s else "CMD_ARG_NONE"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue