diff options
Diffstat (limited to 'test/optparse/test_placearg.rb')
-rw-r--r-- | test/optparse/test_placearg.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/optparse/test_placearg.rb b/test/optparse/test_placearg.rb index 1aec01efb4..0bbd1a007e 100644 --- a/test/optparse/test_placearg.rb +++ b/test/optparse/test_placearg.rb @@ -6,7 +6,10 @@ class TestOptionParser::PlaceArg < TestOptionParser @opt.def_option("-x [VAL]") {|x| @flag = x} @opt.def_option("--option [VAL]") {|x| @flag = x} @opt.def_option("-T [level]", /^[0-4]$/, Integer) {|x| @topt = x} + @topt = nil @opt.def_option("-n") {} + @opt.def_option("--regexp [REGEXP]", Regexp) {|x| @reopt = x} + @reopt = nil end def test_short |