Clean up logging

This commit is contained in:
2025-10-15 10:39:19 +01:00
parent 150f065349
commit 2fed2ded69
5 changed files with 170 additions and 72 deletions

View File

@@ -7,9 +7,23 @@
#
# usage: rsc_list_slas.sh [filter]
usage() { echo "Usage: $0 [filter]" 1>&2; exit 1; }
usage() { log_error "Usage: $0 [filter]"; exit 1; }
MYDIR="$(dirname "$(realpath "$0")")"
# Support -v/--verbose and strip it from positional args so it doesn't become $1
NEWARGS=()
for arg in "$@"; do
case "$arg" in
-v|--verbose)
VERBOSE=1
;;
*)
NEWARGS+=("$arg")
;;
esac
done
set -- "${NEWARGS[@]}"
# source $MYDIR/rbk_api.conf
source $MYDIR/rsc_ops.sh