Adding new error message (when short options carry illegal '=')

This commit is contained in:
Miroslav Stampar 2015-08-19 21:00:16 +02:00
parent 383316fcb3
commit f609158d1b

View File

@ -867,6 +867,8 @@ def cmdLineParser():
for i in xrange(len(argv)):
if argv[i] == "-hh":
argv[i] = "-h"
elif re.search(r"\A-\w=.+", argv[i]):
print "[!] potentially miswritten (illegal '=') short option detected ('%s')" % argv[i]
elif argv[i] == "-H":
if i + 1 < len(argv):
extraHeaders.append(argv[i + 1])