export: Allow grouping certain options (-ax)

This commit is contained in:
tschettervictor
2025-06-16 22:16:09 -06:00
committed by GitHub
parent b064349079
commit 63a913195d

View File

@@ -180,8 +180,14 @@ else
shift
;;
-*)
error_notify "[ERROR]: Unknown Option: \"${1}\""
usage
for _opt in $(echo ${1} | sed 's/-//g' | fold -w1); do
case ${_opt} in
a) AUTO=1 ;;
x) enable_debug ;;
*) error_exit "[ERROR]: Unknown Option: \"${1}\""
esac
done
shift
;;
*)
break