fn parse_dump_code_formats(s: String) -> WeldResult<HashSet<DumpCodeFormat>> {
    use crate::util::dump::DumpCodeFormat::*;
    s.split(',')
        .map(|s| match s.to_lowercase().as_ref() {
            "weld" => Ok(Weld),
            "weldopt" => Ok(WeldOpt),
            "llvm" => Ok(LLVM),
            "llvmopt" => Ok(LLVMOpt),
            "assembly" => Ok(Assembly),
            "sir" => Ok(SIR),
            other => compile_err!("Unknown dumpCode format '{}'", other),
        })
        .collect::<WeldResult<HashSet<DumpCodeFormat>>>()
}
Parses a comma separated list of formats.
weld/src/conf/mod.rs