From e34a497b3ed3c74f7bac613f93b3dc362d82d158 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 7 Aug 2014 00:11:14 -0500 Subject: Prefer interpolation --- Library/Homebrew/cmd/options.rb | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3