unicodeit-cli 0.2.2

The command line interface to unicodeit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Arg;

pub fn main() {
    let matches = clap::command!()
        .arg(
            Arg::new("latex")
                .required(true)
                .help("The latex code to convert to unicode"),
        )
        .get_matches();
    let latex = matches
        .get_one::<String>("latex")
        .expect("Must have `latex` arg");
    println!("{}", unicodeit::replace(latex))
}