2014-07-29 19:07:14 +00:00
|
|
|
#
|
|
|
|
# Gems
|
|
|
|
#
|
|
|
|
|
|
|
|
require 'active_support/dependencies/autoload'
|
|
|
|
|
2014-07-31 14:41:08 +00:00
|
|
|
# @note Must use the nested declaration of the
|
|
|
|
# {Metasploit::Framework::ParsedOptions} namespace because commands, which
|
|
|
|
# use parsed options, need to be able to be required directly without any
|
|
|
|
# other part of metasploit-framework besides config/boot so that the
|
|
|
|
# commands can parse arguments, setup RAILS_ENV, and load
|
|
|
|
# config/application.rb correctly.
|
2014-07-29 19:07:14 +00:00
|
|
|
module Metasploit
|
|
|
|
module Framework
|
2014-07-31 14:41:08 +00:00
|
|
|
# Namespace for parsed options for {Metasploit::Framework::Command
|
|
|
|
# commands}. The names of `Class`es in this namespace correspond to the
|
|
|
|
# name of the `Class` in the {Metasploit::Framework::Command} namespace
|
|
|
|
# for which this namespace's `Class` parses options.
|
2014-07-29 19:07:14 +00:00
|
|
|
module ParsedOptions
|
|
|
|
extend ActiveSupport::Autoload
|
|
|
|
|
|
|
|
autoload :Base
|
|
|
|
autoload :Console
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|