add --version switch

This commit is contained in:
Christian Mehlmauer
2013-08-18 15:40:55 +02:00
parent 81f9612de2
commit 03f8b02ac1
3 changed files with 18 additions and 4 deletions

View File

@@ -29,7 +29,8 @@ class WpscanOptions
:config_file,
:exclude_content_based,
:basic_auth,
:debug_output
:debug_output,
:version
]
attr_accessor *ACCESSOR_OPTIONS
@@ -237,7 +238,8 @@ class WpscanOptions
['--config-file', '-c', GetoptLong::REQUIRED_ARGUMENT],
['--exclude-content-based', GetoptLong::REQUIRED_ARGUMENT],
['--basic-auth', GetoptLong::REQUIRED_ARGUMENT],
['--debug-output', GetoptLong::NO_ARGUMENT]
['--debug-output', GetoptLong::NO_ARGUMENT],
['--version', GetoptLong::NO_ARGUMENT]
)
end