Parent

GetoptLong::DSL

DSL-mode parser.

Attributes

arguments[R]

Public Class Methods

new(&block) click to toggle source
    # File lib/more/facets/getoptlong.rb, line 50
50:     def initialize(&block)
51:       @arguments = []
52:       instance_eval(&block)
53:     end

Public Instance Methods

flag(*opts) click to toggle source
    # File lib/more/facets/getoptlong.rb, line 55
55:     def flag(*opts)
56:       @arguments << (opts << GetoptLong::NO_ARGUMENT)
57:     end
optional(*opts) click to toggle source
    # File lib/more/facets/getoptlong.rb, line 64
64:     def optional(*opts)
65:       @arguments << (opts << GetoptLong::OPTIONAL_ARGUMENT)
66:     end
Also aliased as: opts
opts(*opts) click to toggle source
Alias for: optional
reqs(*opts) click to toggle source
Alias for: required
required(*opts) click to toggle source
    # File lib/more/facets/getoptlong.rb, line 59
59:     def required(*opts)
60:       @arguments << (opts <<  GetoptLong::REQUIRED_ARGUMENT)
61:     end
Also aliased as: reqs

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.