1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample/getoptlong/aliases.rb

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