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