aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-14 15:07:31 -0600
committerJack Nagel2013-01-14 15:08:13 -0600
commit3c04d14cc9d9574e7a5596529ccc75dfc5dddcb5 (patch)
tree4f66ea633bbd92bcffcff5ad82883aa58b004b01 /Library/Homebrew/cmd/options.rb
parentadf80ba0a8bc976d376d2d71d0d69c9d9de8c1c4 (diff)
downloadbrew-3c04d14cc9d9574e7a5596529ccc75dfc5dddcb5.tar.bz2
options: sort options consistently
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-rw-r--r--Library/Homebrew/cmd/options.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb
index 9cb41f7bb..94d0df065 100644
--- a/Library/Homebrew/cmd/options.rb
+++ b/Library/Homebrew/cmd/options.rb
@@ -21,7 +21,7 @@ module Homebrew extend self
ff.each do |f|
next if f.build.empty?
if ARGV.include? '--compact'
- puts f.build.as_flags * " "
+ puts f.build.as_flags.sort * " "
else
puts f.name if ff.length > 1
dump_options_for_formula f
@@ -31,7 +31,7 @@ module Homebrew extend self
end
def dump_options_for_formula f
- f.build.each do |opt|
+ f.build.sort_by(&:flag).each do |opt|
puts opt.flag
puts "\t"+opt.description
end