Skip to content

Commit c60db09

Browse files
committed
Remove obsolete -V short flag from --visibility option
The -V flag was registered on both --visibility and --verbose. Since OptionParser resolves short-flag conflicts in favor of the later declaration, --verbose owned -V in practice, leaving the visibility short flag dead. Drop it to clear the duplicate registration.
1 parent 40d464d commit c60db09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdoc/options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def parse(argv)
895895

896896
opt.separator nil
897897

898-
opt.on("--visibility=VISIBILITY", "-V", RDoc::VISIBILITIES + [:nodoc],
898+
opt.on("--visibility=VISIBILITY", RDoc::VISIBILITIES + [:nodoc],
899899
"Minimum visibility to document a method.",
900900
"One of 'public', 'protected' (the default),",
901901
"'private' or 'nodoc' (show everything)") do |value|

0 commit comments

Comments
 (0)