mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Oops, don't print the program name twice when reporting an option
parsing error.
This commit is contained in:
parent
67c34404f2
commit
e5d21d371e
1 changed files with 1 additions and 1 deletions
|
|
@ -994,7 +994,7 @@ def main():
|
|||
try:
|
||||
opts, input_filenames = getopt.gnu_getopt(sys.argv[1:], "hv", ["help", "text", "verbose", "xml"])
|
||||
except getopt.GetoptError, e:
|
||||
usage_error(u"%s: %s" % (sys.argv[0], e.msg))
|
||||
usage_error(e.msg)
|
||||
for o, a in opts:
|
||||
if o == "-h" or o == "--help":
|
||||
usage()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue