Skip to content

Commit

Permalink
Merge pull request redis#1400 from alonana/master
Browse files Browse the repository at this point in the history
handle memory usage command arguments
  • Loading branch information
vmihailenco committed Jul 9, 2020
2 parents d66af70 + c41cbf2 commit 6b9f61c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int {
return 0
case "publish":
return 1
case "memory":
// https://github.com/redis/redis/issues/7493
if cmd.stringArg(1) == "usage" {
return 2
}
}

if info == nil {
return 0
}
Expand Down

0 comments on commit 6b9f61c

Please sign in to comment.