label-converter 1.2.1

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

fn main() {
    let matches = Command::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")
                .long("header")
                .action(ArgAction::Set)
                .help("HTML header"),
        )
        .arg(
            Arg::new("body")
                .long("body")
                .action(ArgAction::Set)
                .required(true)
                .help("HTML body"),
        )
        .arg(
            Arg::new("footer")
                .long("footer")
                .action(ArgAction::Set)
                .help("HTML footer"),
        )
        .arg(
            Arg::new("width")
                .short('W')
                .long("width")
                .action(ArgAction::Set)
                .required(true)
                .help("Width of the png"),
        )
        .arg(
            Arg::new("height")
                .short('H')
                .long("height")
                .action(ArgAction::Set)
                .required(true)
                .help("Height of the png"),
        )
        .arg(
            Arg::new("black")
                .long("black")
                .action(ArgAction::SetTrue)
                .help("Force black and white"),
        )
        .arg(
            Arg::new("base64")
                .long("base64")
                .action(ArgAction::SetTrue)
                .help("Encode the png in base64"),
        )
        .arg(
            Arg::new("debug")
                .long("debug")
                .action(ArgAction::SetTrue)
                .help("Save created labels to current folder"),
        )
        .get_matches();

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