mirror of
https://github.com/eRgo35/ascii.git
synced 2026-02-04 20:46:12 +01:00
color
This commit is contained in:
23
src/libs/args.rs
Normal file
23
src/libs/args.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user