Sha256: 9637a1666fb02ffa745a6a4fa8281110c2772bf9c40a5ac7c0d5b272441b3cef

Contents?: true

Size: 131 Bytes

Versions: 13

Compression:

Stored size: 131 Bytes

Contents

require 'optparse/uri'
parser = OptionParser.new
parser.on('--uri=URI', URI) 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/uri.rb
optparse-0.5.0 doc/optparse/ruby/uri.rb
cli-option_parser.rb-0.6.0 doc/optparse/ruby/uri.rb
cli-option_parser.rb-0.5.3 doc/optparse/ruby/uri.rb
cli-option_parser.rb-0.5.2 doc/optparse/ruby/uri.rb
cmd-optparse.rb-0.5.2 doc/optparse/ruby/uri.rb
cmd-optparse.rb-0.5.0 doc/optparse/ruby/uri.rb
cmd-optparse.rb-0.1.1 doc/optparse/ruby/uri.rb
cmd-optparse.rb-0.1.0 doc/optparse/ruby/uri.rb
optparse-0.4.0 doc/optparse/ruby/uri.rb
optparse-0.3.1 doc/optparse/ruby/uri.rb
optparse-0.3.0 doc/optparse/ruby/uri.rb
optparse-0.2.0 doc/optparse/ruby/uri.rb