Sha256: cd545f0c082fc945a8687493065288f57c666c0f67cad15f9b56481dc4c97225
Contents?: true
Size: 216 Bytes
Versions: 13
Compression:
Stored size: 216 Bytes
Contents
require 'optparse' parser = OptionParser.new parser.on('-x', 'One short name') do |value| p ['-x', value] end parser.on('-1', '-%', 'Two short names (aliases)') do |value| p ['-1 or -%', value] end parser.parse!
Version data entries
13 entries across 13 versions & 3 rubygems