Throw error in seinfoflow when target is specified but not used.

This commit is contained in:
Chris PeBenito 2014-11-09 11:22:23 -05:00
parent e7ec9ccb60
commit eec812b997

View File

@ -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.")