From e7c63c94624f7e3f692393cacb72420033af44c1 Mon Sep 17 00:00:00 2001 From: Artur Mukhamadiev Date: Wed, 1 Oct 2025 13:47:20 +0300 Subject: [PATCH] [maccess] help update :Release Notes: - :Detailed Notes: - :Testing Performed: - :QA Notes: - :Issues Addressed: - --- mutex_access.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mutex_access.sh b/mutex_access.sh index 342dc3c..8388827 100755 --- a/mutex_access.sh +++ b/mutex_access.sh @@ -10,12 +10,12 @@ jump="" lock_file="lock.mutex" usage() { - echo "Usage: $0 [-p PORT -J jump1,jump2] user@host" + echo "Usage: $0 [-p PORT -J jump1,jump2 -u YourName] user@host" exit 1 } # Parse command line options -while getopts ":p:J:u:" opt; do +while getopts ":p:J:u:h" opt; do case $opt in p) if ! [[ "$OPTARG" =~ ^[0-9]+$ ]] || [ "$OPTARG" -gt 65535 ]; then @@ -31,6 +31,9 @@ while getopts ":p:J:u:" opt; do u) user="$OPTARG" ;; + h) + usage + ;; \?) echo "Invalid option: -$OPTARG" usage