Actions
Bug #10928
closedoptparse Switch#summarize code doesn't reflect its documentation
Description
The documentation for Switch#summarize
says "+sdone+:: Already summarized short style options keyed hash." for the sdone
argument (similar problem with ldone
). I.e. it mentions it should be a Hash.
However, the actual method definition line shows otherwise, namely an Array.
def summarize(sdone = [], ldone = [], width = 1, max = width - 1, indent = "")
The OptionParser#summarize
command does actually invoke it with Hashes as arguments (line 566): visit(:summarize, {}, {}, width, max, indent, &blk)
.
So the method definition for Switch#summarize
is probably false.
Files
Actions
Like0
Like0Like0Like0Like0