summaryrefslogtreecommitdiff
path: root/sample/getoptlong/abbrev.rb
blob: 9b89863626cc87807ffc75c0c40859fb65e92539 (plain)
1
2
3
4
5
6
7
8
9
require 'getoptlong'

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