| Class | GetoptLong::DSL |
| In: |
lib/facets/standard/facets/getoptlong.rb
|
| Parent: | Object |
| arguments | [R] |
# File lib/facets/standard/facets/getoptlong.rb, line 31 def initialize(&block) @arguments = [] instance_eval(&block) end
# File lib/facets/standard/facets/getoptlong.rb, line 37 def flag(*opts) @arguments << (opts << GetoptLong::NO_ARGUMENT) end
# File lib/facets/standard/facets/getoptlong.rb, line 50 def optional(*opts) @arguments << (opts << GetoptLong::OPTIONAL_ARGUMENT) end