mirror of
https://github.com/aclist/dztui.git
synced 2026-10-28 05:32:44 +01:00
fix: encapsulate usage command
This commit is contained in:
1 parent
1dfe9cd9df
commit
5a54d43601
1 file changed
+4
-1
@@ -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
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user