Skip to content

Commit ce01af9

Browse files
committed
raise_unknown option
1 parent 99af0a0 commit ce01af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optparse.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ def sym_set(name, val)
16431643
end
16441644
end
16451645

1646-
def parse_in_order(argv = default_argv, setter = nil, &nonopt) # :nodoc:
1646+
def parse_in_order(argv = default_argv, setter = nil, raise_unknown: self.raise_unknown, &nonopt) # :nodoc:
16471647
opt, arg, val, rest, sub = nil
16481648
nonopt ||= proc {|a| throw :terminate, a}
16491649
argv.unshift(arg) if arg = catch(:terminate) {

0 commit comments

Comments
 (0)