restore sorting of options after commands

This commit is contained in:
EricFromCanada 2018-10-06 00:36:30 -04:00
parent 997a207889
commit dbea3cbe90

View File

@ -82,6 +82,7 @@ module Homebrew
def path_glob_commands(glob) def path_glob_commands(glob)
Pathname.glob(glob) Pathname.glob(glob)
.sort_by { |source_file| sort_key_for_path(source_file) }
.map(&:read).map(&:lines) .map(&:read).map(&:lines)
.map { |lines| lines.grep(/^#:/).map { |line| line.slice(2..-1) }.join } .map { |lines| lines.grep(/^#:/).map { |line| line.slice(2..-1) }.join }
.reject { |s| s.strip.empty? || s.include?("@hide_from_man_page") } .reject { |s| s.strip.empty? || s.include?("@hide_from_man_page") }