Added in dash (-) notation for ports

This commit is contained in:
ProDigySML
2019-01-06 04:22:17 -08:00
parent 924aa6337e
commit a5eb06dcc2

View File

@@ -64,7 +64,11 @@ class InputHelper(object):
final_commands = set()
output = OutputHelper(arguments)
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: