Exception: Slop::UnknownOption

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

Overview

Raised when an unknown option is parsed. Suppress with the ‘suppress_errors` config option.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, flag) ⇒ UnknownOption

Returns a new instance of UnknownOption.



30
31
32
33
# File 'lib/slop/error.rb', line 30

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

Instance Attribute Details

#flagObject (readonly)

Returns the value of attribute flag.



28
29
30
# File 'lib/slop/error.rb', line 28

def flag
  @flag
end