mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-01 06:13:44 +03:00
Removing obsolete switch --version as version is now displayed with every run (Issue #54)
This commit is contained in:
parent
481b46a004
commit
51f35674ca
|
@ -28,7 +28,7 @@ def cmdLineParser():
|
||||||
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\"" % sys.argv[0] if " " in sys.argv[0] else sys.argv[0])
|
||||||
|
|
||||||
parser = OptionParser(usage=usage, version=VERSION_STRING)
|
parser = OptionParser(usage=usage)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
parser.add_option("--hh", dest="advancedHelp",
|
parser.add_option("--hh", dest="advancedHelp",
|
||||||
|
@ -676,10 +676,9 @@ def cmdLineParser():
|
||||||
option._short_opts = ["-hh"]
|
option._short_opts = ["-hh"]
|
||||||
option._long_opts = []
|
option._long_opts = []
|
||||||
|
|
||||||
# Dirty hack for inherent help messages of switches --version and -h
|
# Dirty hack for inherent help message of switch -h
|
||||||
for option in ('-h', '--version'):
|
option = parser.get_option("-h")
|
||||||
_ = parser.get_option(option)
|
option.help = option.help.capitalize().replace("this help", "basic help")
|
||||||
_.help = _.help.capitalize().replace("this help", "basic help")
|
|
||||||
|
|
||||||
args = []
|
args = []
|
||||||
advancedHelp = True
|
advancedHelp = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user