mirror of
https://github.com/aclist/dztui.git
synced 2026-11-01 07: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"
|
echo "Uninstall routine complete"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usage(){
|
||||||
read -r -d '' helptext <<- EOM
|
read -r -d '' helptext <<- EOM
|
||||||
DZGUI - Free and Open Source DayZ launcher
|
DZGUI - Free and Open Source DayZ launcher
|
||||||
|
|
||||||
@@ -1115,6 +1116,8 @@ Options:
|
|||||||
-h, --help:
|
-h, --help:
|
||||||
Prints this message
|
Prints this message
|
||||||
EOM
|
EOM
|
||||||
|
echo "$helptext"
|
||||||
|
}
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
# setup zenity environment
|
# setup zenity environment
|
||||||
@@ -1136,7 +1139,7 @@ main(){
|
|||||||
# shift
|
# shift
|
||||||
;;
|
;;
|
||||||
"--help" | "-h")
|
"--help" | "-h")
|
||||||
echo "$helptext"
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
# shift
|
# shift
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in new issue
Block a user