class OptionParser::Switch::NoArgument

Switch that takes no arguments.

Public Class Methods

# File lib/optparse.rb, line 713
def self.incompatible_argument_styles(*)
end
# File lib/optparse.rb, line 716
def self.pattern
  Object
end

Public Instance Methods

Raises an exception if any arguments given.

# File lib/optparse.rb, line 708
def parse(arg, argv)
  yield(NeedlessArgument, arg) if arg
  conv_arg(arg)
end