diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index 36c00f9..5305c4a 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -64,7 +64,11 @@ class InputHelper(object): final_commands = set() output = OutputHelper(arguments) - ports = arguments.port.split(",") + if "," in arguments.port: + ports = arguments.port.split(",") + elif "-" in arguments.port: + tmp_ports = arguments.port.split("-") + ports = list(range(int(tmp_ports[0]), int(tmp_ports[1]) + 1)) # process targets first if arguments.target: