From 19461dde26cd393c0d19e2521b375f37cd908c68 Mon Sep 17 00:00:00 2001 From: Rico Riedel Date: Tue, 22 Nov 2022 22:04:12 +0100 Subject: [PATCH] Improve CLI help --- src/main.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main.rs b/src/main.rs index 54d8f50..bc40287 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ use std::time::Duration; about = env!("CARGO_PKG_DESCRIPTION"), )] struct Args { - /// Set the duration as milliseconds + /// Set the animation duration as milliseconds #[clap( long, default_value_t = 2000, @@ -46,40 +46,40 @@ struct Args { /// Set the frames per second #[clap(long, default_value_t = 60, value_parser = value_parser!(u64).range(1..=480))] fps: u64, - /// Set the chars used to model the pattern + /// Choose the chars used to draw the pattern #[clap(long, default_value = ".:+#", value_parser = NonEmptyStringValueParser::new())] chars: String, - /// Set the pattern + /// Choose the pattern #[clap(long, value_enum)] char_pattern: Option, - /// Invert the pattern + /// Choose whether to invert the pattern #[clap(long)] char_invert: Option, - /// Swap the x-axis and y-axis of the pattern + /// Choose whether to swap the x-axis and y-axis of the pattern #[clap(long)] char_swap: Option, - /// Set the segment count of the pattern [default: 1-4] + /// Choose the segment count of the pattern [default: 1-4] #[clap(long, value_parser = value_parser!(u8).range(1..255))] char_segments: Option, - /// Set the slice count of the pattern [default: 1-4] + /// Choose the slice count of the pattern [default: 1-4] #[clap(long, value_parser = value_parser!(u8).range(1..255))] char_slices: Option, - /// Set the colors used to fill the pattern + /// Choose the colors used for the pattern #[clap(long, value_enum)] colors: Option, - /// Set the fill pattern + /// Choose the fill pattern #[clap(long, value_enum)] color_pattern: Option, - /// Choose if the fill pattern should move + /// Choose whether the fill pattern should move #[clap(long)] color_shift: Option, - /// Invert the fill pattern + /// Choose whether to invert the fill pattern #[clap(long)] color_invert: Option, - /// Swap the x-axis and y-axis of the fill pattern + /// Choose whether to swap the x-axis and y-axis of the fill pattern #[clap(long)] color_swap: Option, - /// Set the slice count of the fill pattern [default: 1-4] + /// Choose the slice count of the fill pattern [default: 1-4] #[clap(long, value_parser = value_parser!(u8).range(1..255))] color_slices: Option, }