Exception: CouchShell::Commandline::OptArgMissingError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(optname) ⇒ OptArgMissingError

Returns a new instance of OptArgMissingError.



42
43
44
# File 'lib/couch-shell/commandline.rb', line 42

def initialize(optname)
  @optname = optname
end

Instance Attribute Details

#optnameObject (readonly)

Returns the value of attribute optname.



40
41
42
# File 'lib/couch-shell/commandline.rb', line 40

def optname
  @optname
end

Instance Method Details

#messageObject



46
47
48
# File 'lib/couch-shell/commandline.rb', line 46

def message
  "option `#{optname}' requires argument"
end