Ruby's standard GetoptLong class with an added DSL.
opts = GetoptLong.new do reqs '--expect', '-x' flag '--help', '-h' end
See GetoptLong::DSL for details.
# File lib/facets/standard/facets/getoptlong.rb, line 19 def initialize(*arguments, &block) if block_given? raise ArgumentError unless arguments.empty? arguments = DSL.new(&block).arguments end init(*arguments) end
Generated with the Darkfish Rdoc Generator 2.