Sha256: 42f695c5e297736cee51bbf1c7080b67d33cc62e96ee9692b6015032d0f71ea2

Contents?: true

Size: 215 Bytes

Versions: 13

Compression:

Stored size: 215 Bytes

Contents

require 'optparse/date'
parser = OptionParser.new
parser.accept(:capitalize, /\w*/) do |value|
  value.capitalize
end
parser.on('--capitalize XXX', :capitalize) do |value|
  p [value, value.class]
end
parser.parse!

Version data entries

13 entries across 13 versions & 3 rubygems

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