//! altium-schlib-svg <file.SchLib> — print the native symbol SVG to stdout.
fn main() -> anyhow::Result<()> {
    let path = std::env::args().nth(1).ok_or_else(|| anyhow::anyhow!("usage: altium-schlib-svg <file.SchLib>"))?;
    let sym = altium_schlib::parse_altium_schlib_path(std::path::Path::new(&path))?;
    print!("{}", altium_schlib::render_symbol_svg(&sym));
    Ok(())
}