From 5a54d43601be24092d09654c84b5d159a004488c Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 23 Oct 2025 13:38:56 +0900 Subject: [PATCH] fix: encapsulate usage command --- dzgui.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index 296daa0..c6b8a16 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1093,6 +1093,7 @@ uninstall(){ echo "Uninstall routine complete" } +usage(){ read -r -d '' helptext <<- EOM DZGUI - Free and Open Source DayZ launcher @@ -1115,6 +1116,8 @@ Options: -h, --help: Prints this message EOM +echo "$helptext" +} main(){ # setup zenity environment @@ -1136,7 +1139,7 @@ main(){ # shift ;; "--help" | "-h") - echo "$helptext" + usage exit 0 # shift ;;