Snudde et ulikhetstegn.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-03-05 21:53:40 +00:00
parent 76fcb16adf
commit bc1ba7e631

View File

@ -112,7 +112,7 @@ def check_command_args(args, command):
if len(args) < min_num_args:
raise BadCommandLine('Too few arguments for command %s (expects at least %d, %d given).'
% (command, min_num_args, len(args)))
if (not unlimited) and (len(args) < max_num_args):
if (not unlimited) and (len(args) > max_num_args):
raise BadCommandLine('Too many arguments for command %s (expects at most %d, %d given).'
% (command, max_num_args, len(args)))