mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
9 lines
187 B
Ruby
9 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
|