_var_of() { eval printf '"%s"' '"${'"${1}${2}"'}"'; }
_build_index() {
- _INDEX=" ${_CMD}$(_var_of 'HELP_ARGS_' ${_CMD})"
+ _ARGS="$(_var_of 'HELP_ARGS_' ${_CMD})"
+ if [ ! -z "${_ARGS}" ]; then
+ _ARGS=" ${_ARGS}"
+ fi
+ _INDEX=" ${_CMD}${_ARGS}"
_LEN_INDEX=$(echo -n "${_INDEX}" | wc -c)
}
_MAX_LEN_INDEX=0
_id_from_file() { head -1 "$1" | cut -d' ' -f2; }
-HELP_ARGS_backup_keys=' PATH'
+HELP_ARGS_backup_keys='PATH'
HELP_DESC_backup_keys="copy known keys to PATH/, with their repos' server names as filenames"
CMDFNC_backup_keys() {
_check_args_n 1 "$@"
cd - > /dev/null
}
-HELP_ARGS_claim=' PATH'
+HELP_ARGS_claim='PATH'
HELP_DESC_claim="register file of PATH as key to repo at \"$(servername_to_location SERVERNAME)\", with SERVERNAME the filename portion of PATH"
CMDFNC_claim() {
_check_args_n 1 "$@"