Skip to content

Commit cab528e

Browse files
5longnobu
authored andcommitted
Docs on .load(into: Hash-like)
1 parent 0c8fe93 commit cab528e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/optparse.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,9 @@ def candidate(word)
19031903
# directory ~/.options, then the basename with '.options' suffix
19041904
# under XDG and Haiku standard places.
19051905
#
1906+
# The optional +into+ keyword argument works exactly like that accepted in
1907+
# method #parse
1908+
#
19061909
def load(filename = nil, into: nil)
19071910
unless filename
19081911
basename = File.basename($0, '.*')

0 commit comments

Comments
 (0)