brew options: allow --all
This commit is contained in:
parent
43f77f6ad0
commit
6fda61cde4
@ -1,6 +1,16 @@
|
|||||||
|
require 'formula'
|
||||||
|
|
||||||
|
def ff
|
||||||
|
if ARGV.include? "--all"
|
||||||
|
Formula.all
|
||||||
|
else
|
||||||
|
ARGV.formulae
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
module Homebrew extend self
|
module Homebrew extend self
|
||||||
def options
|
def options
|
||||||
ARGV.formulae.each do |f|
|
ff.each do |f|
|
||||||
f.options rescue next
|
f.options rescue next
|
||||||
if ARGV.include? '--compact'
|
if ARGV.include? '--compact'
|
||||||
puts f.options.collect {|o| o[0]} * " "
|
puts f.options.collect {|o| o[0]} * " "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user