Method: Gem::OptionParser::Switch::NoArgument#parse
- Defined in:
- lib/rubygems/vendor/optparse/lib/optparse.rb
#parse(arg, argv) {|NeedlessArgument, arg| ... } ⇒ Object
Raises an exception if any arguments given.
717 718 719 720 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 717 def parse(arg, argv) yield(NeedlessArgument, arg) if arg conv_arg(arg) end |