mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
17 lines
341 B
Ruby
17 lines
341 B
Ruby
![]() |
module Homebrew extend self
|
||
|
def options
|
||
|
ARGV.formulae.each do |f|
|
||
|
f.options rescue next
|
||
|
if ARGV.include? '--compact'
|
||
|
puts f.options.collect {|o| o[0]} * " "
|
||
|
else
|
||
|
puts f.name
|
||
|
f.options.each do |o|
|
||
|
puts o[0]
|
||
|
puts "\t"+o[1]
|
||
|
end
|
||
|
puts
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|