Sha256: e31e11044a1638ca3727e5da031921db2d7659d90899ca4e3026c8c2d0773fe1

Contents?: true

Size: 144 Bytes

Versions: 13

Compression:

Stored size: 144 Bytes

Contents

require 'optparse'
parser = OptionParser.new
parser.on('--xxx XXX', /foo/i, 'Matched values') do |value|
  p ['--xxx', value]
end
parser.parse!

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
optparse-0.6.0 doc/optparse/ruby/matched_values.rb
optparse-0.5.0 doc/optparse/ruby/matched_values.rb
cli-option_parser.rb-0.6.0 doc/optparse/ruby/matched_values.rb
cli-option_parser.rb-0.5.3 doc/optparse/ruby/matched_values.rb
cli-option_parser.rb-0.5.2 doc/optparse/ruby/matched_values.rb
cmd-optparse.rb-0.5.2 doc/optparse/ruby/matched_values.rb
cmd-optparse.rb-0.5.0 doc/optparse/ruby/matched_values.rb
cmd-optparse.rb-0.1.1 doc/optparse/ruby/matched_values.rb
cmd-optparse.rb-0.1.0 doc/optparse/ruby/matched_values.rb
optparse-0.4.0 doc/optparse/ruby/matched_values.rb
optparse-0.3.1 doc/optparse/ruby/matched_values.rb
optparse-0.3.0 doc/optparse/ruby/matched_values.rb
optparse-0.2.0 doc/optparse/ruby/matched_values.rb