From bc1ba7e6319db963b8d5ba5b4b045445867af4f6 Mon Sep 17 00:00:00 2001 From: oysteini Date: Sat, 5 Mar 2011 21:53:40 +0000 Subject: [PATCH] Snudde et ulikhetstegn. --- python/worblehat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))