Sha256: 4b05cb0db1cf0fae187d4bc534eed34457fde2de673f23da0b58d3726320a516

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

require 'getoptlong'

options = GetoptLong.new(
  ['--xxx', GetoptLong::REQUIRED_ARGUMENT],
  ['--yyy', GetoptLong::OPTIONAL_ARGUMENT],
  ['--zzz', GetoptLong::NO_ARGUMENT]
)
options.each do |option, argument|
  p [option, argument]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
getoptlong-0.2.1 sample/getoptlong/types.rb
getoptlong-0.2.0 sample/getoptlong/types.rb