diff options
Diffstat (limited to 'sample/getoptlong/each.rb')
-rw-r--r-- | sample/getoptlong/each.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sample/getoptlong/each.rb b/sample/getoptlong/each.rb deleted file mode 100644 index 661e0a968f..0000000000 --- a/sample/getoptlong/each.rb +++ /dev/null @@ -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}" |