Skip to Content Skip to Search

Switch that takes no arguments.

Methods
I
P

Class Public methods

incompatible_argument_styles(*)

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

pattern()

# File ruby/lib/optparse.rb, line 716
def self.pattern
  Object
end

Instance Public methods

parse(arg, argv)

Raises an exception if any arguments given.

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