From 87e96c72617e68a07d12f1719a5baa391a23af8d Mon Sep 17 00:00:00 2001 From: linuskendall Date: Tue, 12 Dec 2023 23:18:43 +0000 Subject: [PATCH] Require name for yes param Yes param only makes sense if name is provided. --- shared/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/types.rs b/shared/src/types.rs index 6b2099f..c681ec7 100644 --- a/shared/src/types.rs +++ b/shared/src/types.rs @@ -355,7 +355,7 @@ pub struct EnableDisablePeerOpts { pub name: Option, /// Bypass confirmation - #[clap(long)] + #[clap(long,requires("name"))] pub yes: bool, }