class OptionParser::Switch::NoArgument
Switch
that takes no arguments.
Public Instance Methods
Source
# File 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.