diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-21 15:17:37 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-21 15:17:37 +0300 |
| commit | 06bcd06a17be3bd242e2b8230dd9b803b1969f3c (patch) | |
| tree | ecec609d7cccd346a81d749c63b094ce3a97a11f /src/main.rs | |
| parent | dde0ddb3aec0522f2bc4c6fa1cb7d25f99fc8403 (diff) | |
feat: use local keybindings for remote attach
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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 <name> Use or create a named persistent session"); println!(" --remote <target> Attach through SSH to a remote Herdr server"); + println!(" --remote-keybindings <local|server>"); + 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); |
