Commit a74f2af6 authored by antirez's avatar antirez
Browse files

redis-cli now checks the arity of vararg commnads

parent 70003d28
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment