echo "Wrapper around certain borgbackup usages.\n"
echo "Available commands:\n"
for _CMD in ${COMMANDS}; do
- _ARGS="$(eval printf '%s' '"${HELP_ARGS_' ${_CMD} '}"')"
- _DESC="$(eval printf '%s' '"${HELP_DESC_' ${_CMD} '}"')"
- printf ' %s%s\t%s' "${_CMD}" "${_ARGS}" "${_DESC}"
+ _INDEX=" ${_CMD}$(eval printf '"%s"' '"${HELP_ARGS_'${_CMD}'}"')"
+ printf '%s' "${_INDEX}"
+ if [ $(printf '%s' "${_INDEX}" | wc -c) -lt 12 ]; then
+ printf '\t'
+ fi
+ eval printf '"\t%s\n"' '"${HELP_DESC_'${_CMD}'}"'
done
}