Add charcters option 🥰
This commit is contained in:
parent
f063b186c2
commit
7e14c853df
1 changed files with 6 additions and 2 deletions
|
@ -11,9 +11,13 @@ pub mod args {
|
||||||
pub output_method: OutputMethod,
|
pub output_method: OutputMethod,
|
||||||
/// The image to convert to ASCII art
|
/// The image to convert to ASCII art
|
||||||
pub image: String,
|
pub image: String,
|
||||||
|
/// The character to use for drawing the image (lighter to darker)
|
||||||
|
/// You can user one character if you uses the color mode
|
||||||
|
#[arg(short, long, default_value=" .,-~:;=!*#$@")]
|
||||||
|
pub characters: String,
|
||||||
/// The output file to write to (if output_method is file)
|
/// The output file to write to (if output_method is file)
|
||||||
#[arg(short, long, default_value=Some("ascii_image.txt"))]
|
#[arg(short, long, default_value="ascii_image.txt")]
|
||||||
pub output: Option<String>,
|
pub output: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, ValueEnum, Debug, PartialOrd, Eq, PartialEq)]
|
#[derive(Copy, Clone, ValueEnum, Debug, PartialOrd, Eq, PartialEq)]
|
||||||
|
|
Loading…
Reference in a new issue