From 80a5c0a968e2aa40577340d5cc3fcb7870af7ef2 Mon Sep 17 00:00:00 2001 From: Valerie Wolfe Date: Thu, 6 Jun 2024 15:56:27 -0400 Subject: [PATCH] 'h' is now shortened version of 'has' instead of help --- README.md | 2 +- src/help.rs | 3 ++- src/main.rs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) 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 c98eb8d..dece562 100644 --- a/src/help.rs +++ b/src/help.rs @@ -62,12 +62,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 |