Support for the Ruby 2.4 series has ended. See here for reference.

In Files

  • optparse.rb

OptionParser::Switch::NoArgument

Switch that takes no arguments.

Public Class Methods

incompatible_argument_styles(*) click to toggle source
 
               # File optparse.rb, line 655
def self.incompatible_argument_styles(*)
end
            
pattern() click to toggle source
 
               # File optparse.rb, line 658
def self.pattern
  Object
end
            

Public Instance Methods

parse(arg, argv) click to toggle source

Raises an exception if any arguments given.

 
               # File optparse.rb, line 650
def parse(arg, argv)
  yield(NeedlessArgument, arg) if arg
  conv_arg(arg)
end