'h' is now shortened version of 'has' instead of help

This commit is contained in:
Valerie Wolfe 2024-06-10 12:02:57 -04:00
parent 26f6fd5dd0
commit 1320b6f122
3 changed files with 5 additions and 4 deletions

View file

@ -31,7 +31,7 @@ remux a foo
# has
tmux h -t foo
remux has foo
remux h foo
# detach
tmux det -t foo

View file

@ -59,12 +59,13 @@ usage: remux detach <session>
args:
<session> 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] <session>
rmux h [flags] session
args:
<session> The session to check for

View file

@ -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 |