mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
8 lines
176 B
Ruby
8 lines
176 B
Ruby
require 'getoptlong'
|
|
|
|
options = GetoptLong.new(
|
|
['--xxx', '-x', '--aaa', '-a', '-p', GetoptLong::NO_ARGUMENT]
|
|
)
|
|
options.each do |option, argument|
|
|
p [option, argument]
|
|
end
|