diff options
-rw-r--r-- | sample/getoptlong/each.rb | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -1,12 +0,0 @@ -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}" |