diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb index ea46664635..8a2b07699f 100644 --- a/Library/Homebrew/dev-cmd/man.rb +++ b/Library/Homebrew/dev-cmd/man.rb @@ -82,6 +82,7 @@ module Homebrew def path_glob_commands(glob) Pathname.glob(glob) + .sort_by { |source_file| sort_key_for_path(source_file) } .map(&:read).map(&:lines) .map { |lines| lines.grep(/^#:/).map { |line| line.slice(2..-1) }.join } .reject { |s| s.strip.empty? || s.include?("@hide_from_man_page") }