label-converter 1.0.0

Turn HTML string into png for label printing
Documentation
use clap::{crate_version, App, Arg};

fn main() {
    let matches = App::new("label-converter")
        .version(crate_version!())
        .author("Miika Launiainen <miika.launiainen@gmail.com>")
        .about("Turn HTML string into png for label printing")
        .arg(
            Arg::new("header")
                .about("HTML header")
                .short('h')
                .takes_value(true)
                .long("header")
                .required(true),
        )
        .arg(
            Arg::new("body")
                .about("HTML body")
                .short('b')
                .long("body")
                .takes_value(true)
                .required(true),
        )
        .arg(
            Arg::new("footer")
                .about("HTML footer")
                .short('f')
                .long("footer")
                .takes_value(true)
                .required(true),
        )
        .arg(
            Arg::new("width")
                .about("Width of the png")
                .short('W')
                .long("width")
                .takes_value(true)
                .required(true),
        )
        .arg(
            Arg::new("height")
                .about("Height of the png")
                .short('H')
                .long("height")
                .takes_value(true)
                .required(true),
        )
        .arg(
            Arg::new("base64")
                .long("base64")
                .about("Encode the png in base64"),
        )
        .arg(
            Arg::new("debug")
                .long("debug")
                .about("Save created labels to current folder"),
        )
        .get_matches();

    label_converter::create(matches.into());
}