title: how to use getoptlog in ruby
body: <pre><code>opts = GetoptLong.new(
    [ '--help', '-h', GetoptLong::NO_ARGUMENT ],
    [ '--repeat', '-n', GetoptLong::REQUIRED_ARGUMENT ],
    [ '--name', GetoptLong::OPTIONAL_ARGUMENT ]
  )
  </code></pre>
  
  <p>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</p>
  
  <pre><code>opts.each do |opt,args|
  </code></pre>
  
  <p>what are the valuse in opt and args respeectively?</p>
  
  <p>Please help me out</p>