Require at least one of -l / -r for session command

Closes #689
This commit is contained in:
moritzdietz
2025-07-03 23:17:09 +02:00
parent dd370bbf84
commit 116fd90bc2

View File

@@ -308,6 +308,7 @@ pub struct Stream {
} }
#[derive(Debug, Args)] #[derive(Debug, Args)]
#[clap(group(ArgGroup::new("mode").args(&["stream_local", "stream_remote"]).multiple(true).required(true)))]
pub struct Session { pub struct Session {
/// Save the session to a file at the specified path. Can be combined with local and remote streaming. /// Save the session to a file at the specified path. Can be combined with local and remote streaming.
#[arg( #[arg(