ruby--ruby/sample/getoptlong/abbrev.rb

10 lines
187 B
Ruby

require 'getoptlong'
options = GetoptLong.new(
['--xxx', GetoptLong::NO_ARGUMENT],
['--xyz', GetoptLong::NO_ARGUMENT]
)
options.each do |option, argument|
p [option, argument]
end