Allow --cache-dir option in command line parameters

This commit is contained in:
Pierre Dargham
2016-08-05 10:56:40 +02:00
parent 93ab6ee2a0
commit 8492190f4c

View File

@@ -45,7 +45,8 @@ class WpscanOptions
:no_banner,
:throttle,
:disable_accept_header,
:disable_referer
:disable_referer,
:cache_dir
]
attr_accessor *ACCESSOR_OPTIONS
@@ -288,7 +289,8 @@ class WpscanOptions
['--no-banner', GetoptLong::NO_ARGUMENT],
['--throttle', GetoptLong::REQUIRED_ARGUMENT],
['--disable-accept-header', GetoptLong::NO_ARGUMENT],
['--disable-referer', GetoptLong::NO_ARGUMENT]
['--disable-referer', GetoptLong::NO_ARGUMENT],
['--cache-dir', GetoptLong::REQUIRED_ARGUMENT]
)
end