Add -h/--help to session command

This commit is contained in:
Kenneth Benzie (Benie) 2025-07-01 12:44:32 +01:00
parent fb2d270e2d
commit 8ca2be7aa0

View File

@ -1,6 +1,12 @@
session() {
if [[ "$1" == "" ]]; then
echo "usage: session <name> [<host>]"
echo "usage: session [-h] <name> [<host>]"
elif [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
echo "usage: session [-h] <name> [<host>]
Create or attach to a tmux session by name either locally on on a remote host
via ssh.
"
else
local name=$1
local host=$2