From a2beb43efc9bcf18af23e8ac462b50af8f148b1b Mon Sep 17 00:00:00 2001 From: David Howells Date: Mon, 14 Apr 2014 17:11:46 +0100 Subject: [PATCH] Fix argument non-combination checking --- suite/argparse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suite/argparse.py b/suite/argparse.py index 74de91d..01a70b3 100644 --- a/suite/argparse.py +++ b/suite/argparse.py @@ -244,7 +244,7 @@ def parse_arguments(args, available_arguments, argument_size_limits, # Check for invalid argument combinations for i in cant_combine_arguments: - if i[0] in params and i[1] in params: - raise AFSArgumentError("Can't combine -" + i[0], "with -" + i[1], file=sys.stderr) + if i[0] in result and i[1] in result: + raise AFSArgumentError("Can't combine -" + i[0] + " with -" + i[1]) return result -- 2.50.1