app/controllers/core.rb in wpscan-3.0.3 vs app/controllers/core.rb in wpscan-3.0.4
- old
+ new
@@ -6,11 +6,11 @@
def cli_options
[OptURL.new(['--url URL', 'The URL of the blog to scan'], required_unless: :update, default_protocol: 'http')] +
super.drop(1) + # delete the --url from CMSScanner
[
OptChoice.new(['--server SERVER', 'Force the supplied server module to be loaded'],
- choices: %w(apache iis nginx),
- normalize: [:downcase, :to_sym]),
+ choices: %w[apache iis nginx],
+ normalize: %i[downcase to_sym]),
OptBoolean.new(['--force', 'Do not check if the target is running WordPress']),
OptBoolean.new(['--[no-]update', 'Wether or not to update the Database'], required_unless: :url)
]
end