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