}
USAGE_ARGS_info='SERVER_NAME [ARCHIVE]'
-USAGE_DESC_info="run 'borg info' against repo at \"$(location_from_servername SERVER_NAME)\", optionally only against ARCHIVE; if latter not provided, instead list most recent archives of repo"
+USAGE_DESC_info="run 'borg info' against repo at \"$(location_from_servername SERVER_NAME)\", optionally only against ARCHIVE; if latter not provided, list most recent archives of repo"
CMDFNC_info() {
_check_args_n 1 2 "$@"
_TARGET_REPO="$(location_from_servername ${1})"
print_usage() {
- _BIN_NAME="$(basename $0)"
echo 'Usage:'
echo "${USAGE_LINES}" | while read _LINE; do
- echo " ${_BIN_NAME} ${_LINE}"
+ echo " $(basename $0) ${_LINE}"
done
echo "\n${USAGE_DESCRIPTION}\n"
_var_of() { eval printf '"%s"' '"${'"${1}${2}"'}"'; }