Sha256: 492438fc8562f67afc5828372333ce5b9dc9ca00ab1b2dcbbbb11112efa87401
Contents?: true
Size: 286 Bytes
Versions: 13
Compression:
Stored size: 286 Bytes
Contents
require 'optparse' parser = OptionParser.new parser.on('-x', '--xxx', 'Short and long, no argument') parser.on('-yYYY', '--yyy', 'Short and long, required argument') parser.on('-z [ZZZ]', '--zzz', 'Short and long, optional argument') options = {} parser.parse!(into: options) p options
Version data entries
13 entries across 13 versions & 3 rubygems