Adds simple and full help options

This commit is contained in:
erwanlr
2018-10-11 17:03:31 +01:00
parent 57942e1826
commit d3e0ff1e66
6 changed files with 30 additions and 29 deletions

View File

@@ -4,13 +4,12 @@ module WPScan
class WpVersion < CMSScanner::Controller::Base
def cli_options
[
OptBoolean.new(['--wp-version-all', 'Check all the version locations']),
OptBoolean.new(['--wp-version-all', 'Check all the version locations'], advanced: true),
OptChoice.new(
['--wp-version-detection MODE',
'Use the supplied mode for the WordPress version detection, ' \
'instead of the global (--detection-mode) mode.'],
choices: %w[mixed passive aggressive],
normalize: :to_sym
choices: %w[mixed passive aggressive], normalize: :to_sym, advanced: true
)
]
end