examples/example_std.rb in getopt-1.4.1 vs examples/example_std.rb in getopt-1.4.2

- old
+ new

@@ -1,17 +1,9 @@ #################################################### # example_std.rb # # Some samples of how to use the Getopt::Std class. ##################################################### -base = File.basename(Dir.pwd) - -if base == "examples" || base =~ /getopt/ - Dir.chdir("..") if base == "examples" - $LOAD_PATH.unshift(Dir.pwd + "/lib") - Dir.chdir("examples") rescue nil -end - require "getopt/std" include Getopt # Try passing different switches to this script to see what happens opts = Std.getopts("o:ID")