flou_cli 0.1.0

CLI for Flou, a flowchart description language.
Documentation
use flou_cli::{run, Error, Opt};
use structopt::StructOpt;

fn main() {
    let opt = Opt::from_args();
    run(opt).unwrap_or_else(|e| {
        match e {
            Error::InputOpen(e) => eprintln!("Could not open input file: {}", e),
            Error::InputRead(e) => eprintln!("Could not read input: {}", e),
            Error::OutputOpen(e) => eprintln!("Could not open output file: {}", e),
            Error::OutputWrite(e) => eprintln!("Could not write output: {}", e),
            Error::CssRead(filename, e) => {
                eprintln!(
                    "Could not read CSS file \"{}\": {}",
                    filename.to_string_lossy(),
                    e
                )
            }
            Error::Parse(e) => eprintln!("{}", e),
        };

        std::process::exit(1);
    });
}