16 lines
257 B
Ruby
Executable File
16 lines
257 B
Ruby
Executable File
compact = ARGV.include? '--compact'
|
|
|
|
ARGV.formulae.each do |f|
|
|
f.options rescue next
|
|
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
|