diff options
Diffstat (limited to 'test/optparse/test_optarg.rb')
-rw-r--r-- | test/optparse/test_optarg.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/optparse/test_optarg.rb b/test/optparse/test_optarg.rb index 2058e3719d..3114b80fc5 100644 --- a/test/optparse/test_optarg.rb +++ b/test/optparse/test_optarg.rb @@ -5,6 +5,8 @@ class TestOptionParser::OptArg < TestOptionParser super @opt.def_option("-x[VAL]") {|x| @flag = x} @opt.def_option("--option[=VAL]") {|x| @flag = x} + @opt.def_option("--regexp[=REGEXP]", Regexp) {|x| @reopt = x} + @reopt = nil end def test_short |