mirror of
https://github.com/aclist/dztui.git
synced 2026-08-28 10:47:15 +02:00
fix: encapsulate usage command
This commit is contained in:
parent
1dfe9cd9df
commit
5a54d43601
5
dzgui.sh
5
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
|
||||
;;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user