diff options
| author | Jack Nagel | 2014-08-07 00:11:14 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-07 00:11:14 -0500 |
| commit | e34a497b3ed3c74f7bac613f93b3dc362d82d158 (patch) | |
| tree | ce3c7f57ef4b3204c4eac8a40a2deb9ff0a05903 | |
| parent | fa88b9697c56166f03264f69e2b7a63492fb2564 (diff) | |
| download | brew-e34a497b3ed3c74f7bac613f93b3dc362d82d158.tar.bz2 | |
Prefer interpolation
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 13 |
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 |
