diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/optparse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index d7434ca4f2..559707abb3 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1147,7 +1147,7 @@ Default options, which never appear in option summary. opt, sw, val = sw.parse(val, argv) {|*exc| raise(*exc) if eq} raise InvalidOption, arg if has_arg and !eq and arg == "-#{opt}" argv.unshift(opt) if opt and (opt = opt.sub(/\A-*/, '-')) != '-' - sw.yield(val) if sw + sw.yield(*val) if sw rescue ParseError raise $!.set_option(arg, has_arg) end |