#!/usr/bin/ruby require 'yaml' require 'csv' def usage puts < help}) unless help.empty? if flags fl = flags.split(/[|\+]/) output[name].merge!({"flags" => fl}) unless fl.empty? end output[name].merge!({"tests" => coverage[name.downcase]}) if coverage[name.downcase] when /^\s*eword/ help = [] end end puts output.to_yaml