mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 02:48:27 +00:00
Add handling for global options
This commit is contained in:
parent
7c0abf2dfb
commit
4eeeebeb8e
@ -1732,6 +1732,22 @@ while true; do
|
||||
shift
|
||||
nrarg=0
|
||||
|
||||
# Handle global options
|
||||
case "$command" in
|
||||
--verbose)
|
||||
verbose=1
|
||||
continue
|
||||
;;
|
||||
--dots)
|
||||
progressDisplayType=dots
|
||||
continue
|
||||
;;
|
||||
--spinner)
|
||||
progressDisplayType=spinner
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
||||
# get the number of arguments for commands that take arguments
|
||||
case "$command" in
|
||||
installmod) nrarg=1; ;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user