fix long arguments

This commit is contained in:
Babak Farrokhi 2016-05-23 18:54:14 +04:30
parent 920b0a8952
commit 4c2d9d51e1
Signed by: farrokhi
GPG Key ID: 6B267AD85D632E9A

View File

@ -97,7 +97,7 @@ def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "qhc:s:t:w:vp:P:S:T46",
["help", "count=", "server=", "quiet", "type=", "wait=", "verbose",
"port", "dstport=", "srcip=", "tcp", "ipv4", "ipv6"])
"port=", "srcip=", "tcp", "ipv4", "ipv6", "srcport="])
except getopt.GetoptError as err:
# print help information and exit:
print(err) # will print something like "option -a not recognized"