opts = GetoptLong.new(
[ '--help', '-h', GetoptLong::NO_ARGUMENT ],
[ '--repeat', '-n', GetoptLong::REQUIRED_ARGUMENT ],
[ '--name', GetoptLong::OPTIONAL_ARGUMENT ]
)
I have this kind of declaration for optlong. Can anyone tell me if opts works as an array or as a hash and also what are the values in opts. One more thing
opts.each do |opt,args|
what are the valuse in opt and args respeectively?
Please help me out