diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-01-16 16:30:32 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-01-16 17:07:10 +0900 |
commit | 4b6936aa047158c98a9ac8861d51e5e09229f8c0 (patch) | |
tree | 9dca3595126af7fd634d7d9bf15c7d4811196082 /sample/getoptlong/require_order.rb | |
parent | 3f5016178cb81536e800a9121b3804e36c9af93c (diff) |
Unbundled samples for getoptlong
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}" |