INNER CODE UNIT · Rust

main

atanunq/viu · src/main.rs:12

fn main() {
    let matches = Command::new(crate_name!())
        .version(crate_version!())
        .about(crate_description!())
        .arg_required_else_help(true)
        .arg(
            Arg::new("file")
                .help("The images to be displayed. Set to - for standard input.")
                .action(Append),
        )
        .arg(
            Arg::new("width")
                .short('w')
                .long("width")
                .value_parser(value_parser!(u32))
                .help("Resize the image to a provided width"),
        )
        .arg(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…