Sha256: b28d30669bc42b61d9c87fd4290ec517c84cbc2b4ac5c44d7d26db1e9ccf5fd6

Contents?: true

Size: 154 Bytes

Versions: 13

Compression:

Stored size: 154 Bytes

Contents

require 'optparse'
parser = OptionParser.new
parser.on('--xxx XXX', 'Long name with required argument') 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/long_required.rb
optparse-0.5.0 doc/optparse/ruby/long_required.rb
cli-option_parser.rb-0.6.0 doc/optparse/ruby/long_required.rb
cli-option_parser.rb-0.5.3 doc/optparse/ruby/long_required.rb
cli-option_parser.rb-0.5.2 doc/optparse/ruby/long_required.rb
cmd-optparse.rb-0.5.2 doc/optparse/ruby/long_required.rb
cmd-optparse.rb-0.5.0 doc/optparse/ruby/long_required.rb
cmd-optparse.rb-0.1.1 doc/optparse/ruby/long_required.rb
cmd-optparse.rb-0.1.0 doc/optparse/ruby/long_required.rb
optparse-0.4.0 doc/optparse/ruby/long_required.rb
optparse-0.3.1 doc/optparse/ruby/long_required.rb
optparse-0.3.0 doc/optparse/ruby/long_required.rb
optparse-0.2.0 doc/optparse/ruby/long_required.rb