Pass args correctly in brew options.
This commit is contained in:
parent
62a080d410
commit
005e9dd5b3
@ -32,9 +32,9 @@ module Homebrew
|
|||||||
args = options_args.parse
|
args = options_args.parse
|
||||||
|
|
||||||
if args.all?
|
if args.all?
|
||||||
puts_options Formula.to_a.sort
|
puts_options Formula.to_a.sort, args: args
|
||||||
elsif args.installed?
|
elsif args.installed?
|
||||||
puts_options Formula.installed.sort
|
puts_options Formula.installed.sort, args: args
|
||||||
elsif !args.command.nil?
|
elsif !args.command.nil?
|
||||||
path = Commands.path(args.command)
|
path = Commands.path(args.command)
|
||||||
odie "Unknown command: #{args.command}" unless path
|
odie "Unknown command: #{args.command}" unless path
|
||||||
@ -54,7 +54,7 @@ module Homebrew
|
|||||||
elsif args.no_named?
|
elsif args.no_named?
|
||||||
raise FormulaUnspecifiedError
|
raise FormulaUnspecifiedError
|
||||||
else
|
else
|
||||||
puts_options args.formulae
|
puts_options args.formulae, args: args
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ module Homebrew
|
|||||||
options
|
options
|
||||||
end
|
end
|
||||||
|
|
||||||
def puts_options(formulae)
|
def puts_options(formulae, args:)
|
||||||
formulae.each do |f|
|
formulae.each do |f|
|
||||||
next if f.options.empty?
|
next if f.options.empty?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user