fix: move arg-less flags to the front

This commit is contained in:
Jose Diaz-Gonzalez
2023-02-21 00:29:30 -05:00
parent a925fe66de
commit 6accb9cbda

View File

@@ -728,7 +728,7 @@ service_parse_args() {
done done
OPTIND=1 OPTIND=1
while getopts "a:c:C:d:i:I:m:n:nN:p:P:q:R:r:s:S:u:" opt; do while getopts "na:c:C:d:i:I:m:n:N:p:P:q:R:r:s:S:u:" opt; do
case "$opt" in case "$opt" in
a) a)
SERVICE_ALIAS="${OPTARG^^}" SERVICE_ALIAS="${OPTARG^^}"