16 lines
257 B
Ruby
Raw Normal View History

2011-02-04 16:52:46 -08:00
compact = ARGV.include? '--compact'
ARGV.formulae.each do |f|
f.options rescue next
2011-02-04 16:52:46 -08:00
if 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