Method: Cmdline::CmdLine#is_option_set

Defined in:
lib/cmdline.rb

#is_option_set(name) ⇒ Object

Raises:

  • (ArgumentError)


346
347
348
349
350
# File 'lib/cmdline.rb', line 346

def is_option_set(name)
  opt = self.options[name]
  raise(ArgumentError, "unknown option") if opt.nil?
  opt.set
end