Exception: CouchShell::Commandline::UnknownOptError

Inherits:
Error
  • Object
show all
Defined in:
lib/couch-shell/commandline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(optname) ⇒ UnknownOptError

Returns a new instance of UnknownOptError.



28
29
30
# File 'lib/couch-shell/commandline.rb', line 28

def initialize(optname)
  @optname = optname
end

Instance Attribute Details

#optnameObject (readonly)

Returns the value of attribute optname.



26
27
28
# File 'lib/couch-shell/commandline.rb', line 26

def optname
  @optname
end

Instance Method Details

#messageObject



32
33
34
# File 'lib/couch-shell/commandline.rb', line 32

def message
  "unkown option `#{optname}'"
end