OptionParser::Switch::RequiredArgument (Class)

In: optparse.rb
Parent: self

Switch that takes an argument.

Methods

parse  

Public Instance methods

Raises an exception if argument is not present.

[Source]

# File optparse.rb, line 453
      def parse(arg, argv, &error)
        unless arg
          raise MissingArgument if argv.empty?
          arg = argv.shift
        end
        conv_arg(*parse_arg(arg, &error))
      end

[Validate]