posterust 0.0.1

Command-line utility to make value-limited, posterized images from existing pictures. Based on a brightness scale with values from 0 to 10, users can specify which values to display. Developed as a tool to help with value studies for painting and explore tonal shapes.
Documentation
use std::error::Error;
use std::process;

use structopt::StructOpt;

mod lib;
use lib::Opt;

fn main() {
    if let Err(e) = try_main() {
        eprintln!("{}", e);
        process::exit(1);
    }
}

fn try_main() -> Result<(), Box<dyn Error>> {
    let opt = Opt::from_args();
    lib::run(opt)?;

    Ok(())
}