Exception: Slop::MissingArgument

Inherits:
Error
  • Object
show all
Defined in:
lib/slop/error.rb

Overview

Raised when an option that expects an argument is executed without one. Suppress with the ‘suppress_errors` config option.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, flags) ⇒ MissingArgument

Get all the flags that matches the option with the missing argument



19
20
21
22
# File 'lib/slop/error.rb', line 19

def initialize(msg, flags)
  super(msg)
  @flags = flags
end

Instance Attribute Details

#flagsObject (readonly)

Returns the value of attribute flags.



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

def flags
  @flags
end