method

ac_arg_with

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: AC
ac_arg_with(name, help_string, &block) public

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 38
  def ac_arg_with(name, help_string, &block)
    _check_ac_args(name, block)

    sdesc = []
    ldesc = ["--with-#{name}"]
    desc = [help_string]
    q = name.downcase
    with = Switch::PlacedArgument.new(*search(:atype, String), sdesc, ldesc, nil, desc, block)
    without = Switch::NoArgument.new(nil, proc {}, sdesc, ldesc, nil, desc, block)
    top.append(with, [], ["with-" + q], without, ['without-' + q])
    with
  end
Register or log in to add new notes.