This commit is contained in:
2024-06-29 22:49:37 +02:00
parent 948a8f3610
commit 4e914db386
8 changed files with 465 additions and 74 deletions

23
src/libs/args.rs Normal file
View File

@@ -0,0 +1,23 @@
use clap::Parser;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
pub struct Args {
#[arg(short, long)]
pub image: String,
#[arg(long, default_value_t = false)]
pub invert: bool,
#[arg(long, default_value_t = false)]
pub colorful: bool,
#[arg(long, default_value_t = 80)]
pub width: usize,
#[arg(long, default_value_t = 25)]
pub height: usize,
#[arg(long, default_value_t = 2)]
pub pixel: usize,
}