From 06bcd06a17be3bd242e2b8230dd9b803b1969f3c Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 21 May 2026 15:17:37 +0300 Subject: feat: use local keybindings for remote attach --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 17052159..c8a2c26a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -394,6 +394,8 @@ fn main() -> io::Result<()> { println!(" --no-session Run monolithically (no server/client, escape hatch)"); println!(" --session Use or create a named persistent session"); println!(" --remote Attach through SSH to a remote Herdr server"); + println!(" --remote-keybindings "); + println!(" Keybindings for --remote app attach (default: local)"); println!(" --default-config Print default configuration and exit"); println!(" --version, -V Print version and exit"); println!(" --help, -h Show this help"); @@ -420,6 +422,7 @@ fn main() -> io::Result<()> { "--no-session", "--session", "--remote", + "--remote-keybindings", "--version", "-V", "--default-config", @@ -427,7 +430,8 @@ fn main() -> io::Result<()> { "-h", ]; for arg in &args[1..] { - if arg.starts_with('-') && !known_flags.contains(&arg.as_str()) { + let arg_name = arg.split_once('=').map(|(name, _)| name).unwrap_or(arg); + if arg.starts_with('-') && !known_flags.contains(&arg_name) { eprintln!("unknown option: {arg}"); eprintln!("run 'herdr --help' for usage"); std::process::exit(1); -- cgit v1.2.3