aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-07 00:11:14 -0500
committerJack Nagel2014-08-07 00:11:14 -0500
commit46faff2743f22350c5dd1722f02bab9ae9856ee7 (patch)
treee66c4461e2ce6668aaa923378dad768b7a269273 /Library/Homebrew/cmd/options.rb
parent405a02075c123dd5496f3d30fc99365c23c990ee (diff)
downloadhomebrew-46faff2743f22350c5dd1722f02bab9ae9856ee7.tar.bz2
Prefer interpolation
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-rw-r--r--Library/Homebrew/cmd/options.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb
index 06d0b080b..fcc149adf 100644
--- a/Library/Homebrew/cmd/options.rb
+++ b/Library/Homebrew/cmd/options.rb
@@ -27,16 +27,9 @@ module Homebrew
def dump_options_for_formula f
f.build.sort_by(&:flag).each do |opt|
- puts opt.flag
- puts "\t"+opt.description
- end
- if f.devel
- puts '--devel'
- puts "\tinstall development version #{f.devel.version}"
- end
- if f.head
- puts '--HEAD'
- puts "\tinstall HEAD version"
+ puts "#{opt.flag}\n\t#{opt.description}"
end
+ puts "--devel\n\tinstall development version #{f.devel.version}" if f.devel
+ puts "--HEAD\n\tinstall HEAD version" if f.head
end
end