From 116fd90bc21cdd38e5bad3c87c09fc1a0097119b Mon Sep 17 00:00:00 2001 From: moritzdietz Date: Thu, 3 Jul 2025 23:17:09 +0200 Subject: [PATCH] Require at least one of -l / -r for session command Closes #689 --- src/cli.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli.rs b/src/cli.rs index 1c36a37..2ac274e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -308,6 +308,7 @@ pub struct Stream { } #[derive(Debug, Args)] +#[clap(group(ArgGroup::new("mode").args(&["stream_local", "stream_remote"]).multiple(true).required(true)))] pub struct Session { /// Save the session to a file at the specified path. Can be combined with local and remote streaming. #[arg(