From 8fd64095a5a8d196dfd1ab2593a1eccc2e56bcfa Mon Sep 17 00:00:00 2001 From: NitinKM <70827815+NewtonChutney@users.noreply.github.com> Date: Sun, 10 Mar 2024 11:23:24 +0530 Subject: [PATCH] Added ArgGroup Added ArgGroup to make the example look aesthetic. The current implementation doesn't put out any warning when one of the two methods of input aren't used. --- cli-customize-fruit-salad/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cli-customize-fruit-salad/src/main.rs b/cli-customize-fruit-salad/src/main.rs index 023beec..9edc98a 100644 --- a/cli-customize-fruit-salad/src/main.rs +++ b/cli-customize-fruit-salad/src/main.rs @@ -16,6 +16,7 @@ use fruit_salad_maker::create_fruit_salad; author = "Your Name ", about = "Make a Fruit Salad" )] +#[group(required = true, multiple = false)] struct Opts { /// Fruits input as a string of comma separated values #[clap(short, long)]