restore sorting of options after commands
This commit is contained in:
parent
997a207889
commit
dbea3cbe90
@ -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") }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user