blob: ac74bfe12ed133568cae71b8a74fcb6c333cdbc7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
require 'getoptlong'
options = GetoptLong.new(
['--xxx', GetoptLong::REQUIRED_ARGUMENT],
['--yyy', GetoptLong::OPTIONAL_ARGUMENT],
['--zzz', GetoptLong::NO_ARGUMENT]
)
options.each do |option, argument|
p [option, argument]
end
|