Sha256: a432b424917f4413b22bb212f0b4a8f16d66d668728572d4361a0467a47ba8f3

Contents?: true

Size: 187 Bytes

Versions: 2

Compression:

Stored size: 187 Bytes

Contents

require 'getoptlong'

options = GetoptLong.new(
  ['--xxx', GetoptLong::NO_ARGUMENT],
  ['--xyz', 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/abbrev.rb
getoptlong-0.2.0 sample/getoptlong/abbrev.rb