diff --git a/README.md b/README.md index cd4690d..2d8cd2a 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ remux a foo # has tmux h -t foo -remux has foo +remux h foo # detach tmux det -t foo diff --git a/src/help.rs b/src/help.rs index 6ff28e0..1cb3103 100644 --- a/src/help.rs +++ b/src/help.rs @@ -59,12 +59,13 @@ usage: remux detach args: The session name to detach clients from"), - Some("has") + Some("h" | "has") => println!("remux has Check if the target session exists. usage: remux has [flags] + rmux h [flags] session args: The session to check for diff --git a/src/main.rs b/src/main.rs index a1c9cf1..bb72006 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,7 +41,7 @@ fn main() { // invoke subcommand function match subcommand.as_deref() { - Some("h" | "help") + Some("help") => help(&mut args), Some("a" | "attach") @@ -50,7 +50,7 @@ fn main() { Some("d" | "detach") => command::share::detach(&mut args), - Some("has") + Some("h" | "has") => command::share::has(&mut args), None |