mirror of
https://github.com/eRgo35/ascii.git
synced 2026-02-04 04:46:09 +01:00
23 lines
474 B
Rust
23 lines
474 B
Rust
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,
|
|
} |