aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-rw-r--r--Library/Homebrew/cmd/options.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb
index 4e7fe0a42..9db4f2f9c 100644
--- a/Library/Homebrew/cmd/options.rb
+++ b/Library/Homebrew/cmd/options.rb
@@ -1,10 +1,10 @@
-require 'formula'
+require "formula"
module Homebrew
def options
- if ARGV.include? '--all'
+ if ARGV.include? "--all"
puts_options Formula.to_a
- elsif ARGV.include? '--installed'
+ elsif ARGV.include? "--installed"
puts_options Formula.installed
else
raise FormulaUnspecifiedError if ARGV.named.empty?
@@ -15,7 +15,7 @@ module Homebrew
def puts_options(formulae)
formulae.each do |f|
next if f.options.empty?
- if ARGV.include? '--compact'
+ if ARGV.include? "--compact"
puts f.options.as_flags.sort * " "
else
puts f.full_name if formulae.length > 1
@@ -25,7 +25,7 @@ module Homebrew
end
end
- def dump_options_for_formula f
+ def dump_options_for_formula(f)
f.options.sort_by(&:flag).each do |opt|
puts "#{opt.flag}\n\t#{opt.description}"
end