Sha256: 45ef7a679d0c47be5326435f15e85ddb95aca1901f72f8889a9bfa030ab44344
Contents?: true
Size: 279 Bytes
Versions: 13
Compression:
Stored size: 279 Bytes
Contents
require 'optparse' parser = OptionParser.new parser.on('--xxx') do |value| p ['--xxx', value] end parser.on('--yyy YYY') do |value| p ['--yyy', value] end parser.on('--zzz [ZZZ]') do |value| p ['--zzz', value] end ret = parser.parse! puts "Returned: #{ret} (#{ret.class})"
Version data entries
13 entries across 13 versions & 3 rubygems