aconv 0.1.4

Converts texts from the auto-detected encoding to UTF-8 or a specified encoding
Documentation
use structopt::StructOpt;
use aconv::option;
use aconv::cli;

fn main() -> () {
    let opt: option::Opt = StructOpt::from_args();
    match cli::dispatch(&opt) {
        Err(err) => {
            if ! err.is_guess() && ! err.is_broken_pipe() {
                eprintln!("{}", err);
            }
            std::process::exit(err.error_code());
        },
        Ok(_) => {
            std::process::exit(0);
        },
    };
}