From eec812b9979584596f194fd3c48e5cf4c7a951cc Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Sun, 9 Nov 2014 11:22:23 -0500 Subject: [PATCH] Throw error in seinfoflow when target is specified but not used. --- seinfoflow | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seinfoflow b/seinfoflow index 669dfa1..5064cf0 100755 --- a/seinfoflow +++ b/seinfoflow @@ -57,6 +57,9 @@ args = parser.parse_args() if not args.target and (args.shortest_path or args.all_paths): parser.error("The target type must be specified to determine a path.") +if args.target and not (args.shortest_path or args.all_paths): + parser.error("A target type is not used for flows in/out of a type.") + if args.limit_flows < 0: parser.error("Limit on information flows cannot be negative.")