Add handling for global options

This commit is contained in:
Ben Peddell 2016-02-27 22:19:10 +10:00
parent 7c0abf2dfb
commit 4eeeebeb8e

View File

@ -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; ;;