PATH:
opt
/
alt
/
ruby34
/
share
/
gems
/
gems
/
getoptlong-0.2.1
/
sample
/
getoptlong
require 'getoptlong' options = GetoptLong.new( ['--xxx', '-x', GetoptLong::REQUIRED_ARGUMENT], ['--yyy', '-y', GetoptLong::OPTIONAL_ARGUMENT], ['--zzz', '-z',GetoptLong::NO_ARGUMENT] ) puts "Original ARGV: #{ARGV}" options.each do |option, argument| p [option, argument] end puts "Remaining ARGV: #{ARGV}"
[-] return_in_order.rb
[edit]
[-] fibonacci.rb
[edit]
[-] permute.rb
[edit]
[-] aliases.rb
[edit]
[-] argv.rb
[edit]
[-] each.rb
[edit]
[+]
..
[-] abbrev.rb
[edit]
[-] require_order.rb
[edit]
[-] types.rb
[edit]
[-] simple.rb
[edit]