mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 08:52:20 +01:00
Another minor update for Issue #54
This commit is contained in:
parent
8b8677b938
commit
6b419067b7
1 changed files with 6 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ def cmdLineParser():
|
||||||
try:
|
try:
|
||||||
parser.add_option("--hh", dest="advancedHelp",
|
parser.add_option("--hh", dest="advancedHelp",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Show advanced help")
|
help="Show advanced help message and exit")
|
||||||
|
|
||||||
parser.add_option("-v", dest="verbose", type="int",
|
parser.add_option("-v", dest="verbose", type="int",
|
||||||
help="Verbosity level: 0-6 (default %d)" % defaults.verbose)
|
help="Verbosity level: 0-6 (default %d)" % defaults.verbose)
|
||||||
|
|
@ -676,6 +676,11 @@ 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
|
||||||
|
for option in ('-h', '--version'):
|
||||||
|
_ = parser.get_option(option)
|
||||||
|
_.help = _.help.capitalize().replace("this help", "basic help")
|
||||||
|
|
||||||
args = []
|
args = []
|
||||||
advancedHelp = True
|
advancedHelp = True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue