CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/metasploit/framework/parsed_options.rb
Views: 11779
1
#
2
# Gems
3
#
4
5
require 'active_support/dependencies/autoload'
6
7
# @note Must use the nested declaration of the
8
# {Metasploit::Framework::ParsedOptions} namespace because commands, which
9
# use parsed options, need to be able to be required directly without any
10
# other part of metasploit-framework besides config/boot so that the
11
# commands can parse arguments, setup RAILS_ENV, and load
12
# config/application.rb correctly.
13
module Metasploit
14
module Framework
15
# Namespace for parsed options for {Metasploit::Framework::Command
16
# commands}. The names of `Class`es in this namespace correspond to the
17
# name of the `Class` in the {Metasploit::Framework::Command} namespace
18
# for which this namespace's `Class` parses options.
19
module ParsedOptions
20
extend ActiveSupport::Autoload
21
22
autoload :Base
23
autoload :Console
24
end
25
end
26
end
27
28
29