mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Cosmetic fix (Kali shows ugly 'python ./sqlmap.py' in usage)
This commit is contained in:
parent
96ccdb7c83
commit
696fb6530e
|
@ -6,6 +6,7 @@ See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from optparse import OptionError
|
from optparse import OptionError
|
||||||
|
@ -32,8 +33,10 @@ def cmdLineParser():
|
||||||
|
|
||||||
checkSystemEncoding()
|
checkSystemEncoding()
|
||||||
|
|
||||||
|
_ = os.path.normpath(sys.argv[0])
|
||||||
|
|
||||||
usage = "%s%s [options]" % ("python " if not IS_WIN else "", \
|
usage = "%s%s [options]" % ("python " if not IS_WIN else "", \
|
||||||
"\"%s\"" % sys.argv[0] if " " in sys.argv[0] else sys.argv[0])
|
"\"%s\"" % _ if " " in _ else _)
|
||||||
|
|
||||||
parser = OptionParser(usage=usage)
|
parser = OptionParser(usage=usage)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user