mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 23:18:28 +00:00
Add handling for global options
This commit is contained in:
parent
7c0abf2dfb
commit
4eeeebeb8e
@ -1732,6 +1732,22 @@ while true; do
|
|||||||
shift
|
shift
|
||||||
nrarg=0
|
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
|
# get the number of arguments for commands that take arguments
|
||||||
case "$command" in
|
case "$command" in
|
||||||
installmod) nrarg=1; ;;
|
installmod) nrarg=1; ;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user