From dbea3cbe90b7d05e046f036d87bdb604362b7bb3 Mon Sep 17 00:00:00 2001 From: EricFromCanada Date: Sat, 6 Oct 2018 00:36:30 -0400 Subject: [PATCH] restore sorting of options after commands --- Library/Homebrew/dev-cmd/man.rb | 1 + 1 file changed, 1 insertion(+) 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") }