# -*- coding: binary -*-1module Msf2module Ui34#5# Common functions needed by more than one user interface6#7class Common89# Process the command line argument vector, handling common global10# var/value pairs that can be used to control additional framework11# features12def self.process_cli_arguments(framework, argv)13argv.delete_if { |assign|14var, val = assign.split('=', 2)1516next if var.nil? or val.nil?1718case var.downcase19# Add an additional module search path20when "modulepath"21# Don't affect the module cache by us loading these modules22framework.modules.add_module_path(val)23true24else25false26end27}28end2930end3132end33end343536