redis-cli now checks the arity of vararg commnads

This commit is contained in:
antirez 2009-03-22 14:59:05 +01:00
parent 70003d28b8
commit a74f2af61c

View File

@ -224,7 +224,7 @@ static int cliSendCommand(int argc, char **argv) {
}
if ((rc->arity > 0 && argc != rc->arity) ||
(rc->arity < 0 && argc < rc->arity)) {
(rc->arity < 0 && argc < -rc->arity)) {
fprintf(stderr,"Wrong number of arguments for '%s'\n",rc->name);
return 1;
}