Class OptionParser::NoArgument
In: lib/optparse.rb
Parent: self

Switch that takes no arguments.

Methods

Public Class methods

[Source]

     # File lib/optparse.rb, line 433
433:       def self.incompatible_argument_styles(*)
434:       end

[Source]

     # File lib/optparse.rb, line 436
436:       def self.pattern
437:         Object
438:       end

Public Instance methods

Raises an exception if any arguments given.

[Source]

     # File lib/optparse.rb, line 428
428:       def parse(arg, argv)
429:         yield(NeedlessArgument, arg) if arg
430:         conv_arg(arg)
431:       end

[Validate]