Switch that takes no arguments.
Instance Methods
4.0
View on GitHub
# File tmp/rubies/ruby-4.0.0/lib/optparse.rb, line 723
def parse(arg, argv)
yield(NeedlessArgument, arg) if arg
conv_arg(arg)
end
Raises an exception if any arguments given.