# frozen_string_literal: true12module WPScan3module Controller4# Main Theme Controller5class MainTheme < CMSScanner::Controller::Base6def cli_options7[8OptChoice.new(9['--main-theme-detection MODE',10'Use the supplied mode for the Main theme detection, instead of the global (--detection-mode) mode.'],11choices: %w[mixed passive aggressive], normalize: :to_sym, advanced: true12)13]14end1516def run17output(18'theme',19theme: target.main_theme(20mode: ParsedCli.main_theme_detection || ParsedCli.detection_mode21),22verbose: ParsedCli.verbose23)24end25end26end27end282930