diff --git a/python/worblehat.py b/python/worblehat.py index 69e627a..b6c7bef 100755 --- a/python/worblehat.py +++ b/python/worblehat.py @@ -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)))