Module: CLI

Defined in:
lib/cli.rb

Defined Under Namespace

Classes: CommonOptionParser

Constant Summary collapse

LOGGING_LEVELS =
{
    :debug => Logger::DEBUG,
    :info => Logger::INFO,
    :warn => Logger::WARN,
    :error => Logger::ERROR,
    :fatal => Logger::FATAL
}

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.optionsObject

Returns the value of attribute options.



15
16
17
# File 'lib/cli.rb', line 15

def options
  @options
end

Class Method Details

.new_common_option_parser(*args) ⇒ Object

CommonOptionParser



61
62
63
64
65
# File 'lib/cli.rb', line 61

def self.new_common_option_parser(*args)
  op = CommonOptionParser.new(*args)
  op.options = options
  op
end