From 7e14c853df3b60e08a2509057b38f0ff5d3a4844 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Mon, 3 Oct 2022 16:22:08 +0200 Subject: [PATCH] =?UTF-8?q?Add=20charcters=20option=20=F0=9F=A5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/args.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/args.rs b/src/args.rs index 98301b7..f824adc 100644 --- a/src/args.rs +++ b/src/args.rs @@ -11,9 +11,13 @@ pub mod args { pub output_method: OutputMethod, /// The image to convert to ASCII art 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) - #[arg(short, long, default_value=Some("ascii_image.txt"))] - pub output: Option, + #[arg(short, long, default_value="ascii_image.txt")] + pub output: String, } #[derive(Copy, Clone, ValueEnum, Debug, PartialOrd, Eq, PartialEq)]