method

_ac_arg_enable

Importance_0
v2_5_5 - Show latest stable - 0 notes - Class: AC
_ac_arg_enable(prefix, name, help_string, block) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/optparse/ac.rb, line 16
  def _ac_arg_enable(prefix, name, help_string, block)
    _check_ac_args(name, block)

    sdesc = []
    ldesc = ["--#{prefix}-#{name}"]
    desc = [help_string]
    q = name.downcase
    enable = Switch::NoArgument.new(nil, proc {true}, sdesc, ldesc, nil, desc, block)
    disable = Switch::NoArgument.new(nil, proc {false}, sdesc, ldesc, nil, desc, block)
    top.append(enable, [], ["enable-" + q], disable, ['disable-' + q])
    enable
  end
Register or log in to add new notes.