Fix #12 Argument added to use another config file : --config-file | -c

This commit is contained in:
Erwan
2012-09-04 17:54:10 +02:00
parent 773ed7a2d1
commit 8e5d506bc1
4 changed files with 17 additions and 10 deletions

View File

@@ -36,7 +36,8 @@ class WpscanOptions
:follow_redirection,
:wp_content_dir,
:wp_plugins_dir,
:help
:help,
:config_file
]
attr_accessor *ACCESSOR_OPTIONS
@@ -176,7 +177,8 @@ class WpscanOptions
["--update", GetoptLong::NO_ARGUMENT],
["--follow-redirection", GetoptLong::NO_ARGUMENT],
["--wp-content-dir", GetoptLong::REQUIRED_ARGUMENT],
["--wp-plugins-dir", GetoptLong::REQUIRED_ARGUMENT]
["--wp-plugins-dir", GetoptLong::REQUIRED_ARGUMENT],
["--config-file", "-c", GetoptLong::REQUIRED_ARGUMENT]
)
end