DSL-mode parser.
Methods
flag
new
optional
opts
reqs
required
Attributes
[R] | arguments |
Public Class methods
[ + ]
# File lib/lore/facets/getoptlong.rb, line 50 def initialize(&block) @arguments = [] instance_eval(&block) end
Public Instance methods
[ + ]
# File lib/lore/facets/getoptlong.rb, line 55 def flag(*opts) @arguments << (opts << GetoptLong::NO_ARGUMENT) end
This method is also aliased as
opts
[ + ]
# File lib/lore/facets/getoptlong.rb, line 64 def optional(*opts) @arguments << (opts << GetoptLong::OPTIONAL_ARGUMENT) end
Alias for optional
Alias for required