| Class | GetoptLong::DSL |
| In: |
lib/more/facets/getoptlong.rb
|
| Parent: | Object |
| arguments | [R] |
# File lib/more/facets/getoptlong.rb, line 50
50: def initialize(&block)
51: @arguments = []
52: instance_eval(&block)
53: end
# File lib/more/facets/getoptlong.rb, line 55
55: def flag(*opts)
56: @arguments << (opts << GetoptLong::NO_ARGUMENT)
57: end
# File lib/more/facets/getoptlong.rb, line 64
64: def optional(*opts)
65: @arguments << (opts << GetoptLong::OPTIONAL_ARGUMENT)
66: end