options: sort options consistently
This commit is contained in:
parent
adf80ba0a8
commit
3c04d14cc9
@ -21,7 +21,7 @@ module Homebrew extend self
|
|||||||
ff.each do |f|
|
ff.each do |f|
|
||||||
next if f.build.empty?
|
next if f.build.empty?
|
||||||
if ARGV.include? '--compact'
|
if ARGV.include? '--compact'
|
||||||
puts f.build.as_flags * " "
|
puts f.build.as_flags.sort * " "
|
||||||
else
|
else
|
||||||
puts f.name if ff.length > 1
|
puts f.name if ff.length > 1
|
||||||
dump_options_for_formula f
|
dump_options_for_formula f
|
||||||
@ -31,7 +31,7 @@ module Homebrew extend self
|
|||||||
end
|
end
|
||||||
|
|
||||||
def dump_options_for_formula f
|
def dump_options_for_formula f
|
||||||
f.build.each do |opt|
|
f.build.sort_by(&:flag).each do |opt|
|
||||||
puts opt.flag
|
puts opt.flag
|
||||||
puts "\t"+opt.description
|
puts "\t"+opt.description
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user