Method: OptionParser#define
- Defined in:
- lib/optparse.rb
#define(*opts, &block) ⇒ Object Also known as: def_option
:call-seq:
define(*params, &block)
:include: ../doc/optparse/creates_option.rdoc
1540 1541 1542 1543 |
# File 'lib/optparse.rb', line 1540 def define(*opts, &block) top.append(*(sw = make_switch(opts, block))) sw[0] end |