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

@@ -24,6 +24,11 @@ def main
exit(0)
end
if wpscan_options.version
puts "Current version is #{version}"
exit(0)
end
# Check for updates
if wpscan_options.update
if !@updater.nil?