summaryrefslogtreecommitdiff
path: root/sample/getoptlong/aliases.rb
blob: 895254c6ae8550af45655681d2e2dff10b1aadc2 (plain)
1
2
3
4
5
6
7
8
require 'getoptlong'

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