Skip to content

Commit 0227c1b

Browse files
authored
Merge pull request #426 from rdoc/fix-un-intentional-options
Restore options after option parsing
2 parents 4b2fab8 + 542e23a commit 0227c1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rdoc/rdoc.rb

+2
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def parse_files files
417417

418418
return [] if file_list.empty?
419419

420+
original_options = @options.dup
420421
@stats.begin_adding
421422

422423
file_info = file_list.map do |filename|
@@ -425,6 +426,7 @@ def parse_files files
425426
end.compact
426427

427428
@stats.done_adding
429+
@options = original_options
428430

429431
file_info
430432
end

0 commit comments

Comments
 (0)