Sha256: ebde89cf4d9a2e56e6975a8f17ccc095860f55638bb46ad664bb6d660240f98a
Contents?: true
Size: 343 Bytes
Versions: 2
Compression:
Stored size: 343 Bytes
Contents
require 'getoptlong' options = GetoptLong.new( ['--xxx', GetoptLong::REQUIRED_ARGUMENT], ['--yyy', GetoptLong::OPTIONAL_ARGUMENT], ['--zzz', GetoptLong::NO_ARGUMENT] ) options.ordering = GetoptLong::REQUIRE_ORDER puts "Original ARGV: #{ARGV}" options.each do |option, argument| p [option, argument] end puts "Remaining ARGV: #{ARGV}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
getoptlong-0.2.1 | sample/getoptlong/require_order.rb |
getoptlong-0.2.0 | sample/getoptlong/require_order.rb |