Module: Ronin::Recon::CLI::DebugOption Private
- Included in:
- Commands::Run, Commands::Test
- Defined in:
- lib/ronin/recon/cli/debug_option.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Adds a -D,--debug
option to the command that enables debugging output.
Class Method Summary collapse
-
.included(command) ⇒ Object
private
Adds the
-D,--debug
option to the including command class.
Class Method Details
.included(command) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Adds the -D,--debug
option to the including command class.
36 37 38 39 40 41 |
# File 'lib/ronin/recon/cli/debug_option.rb', line 36 def self.included(command) command.option :debug, short: '-D', desc: 'Enable debugging output' do Console.logger.level = Console::Logger::DEBUG end end |