Fix help function names

This commit is contained in:
3wc 2021-01-01 01:46:09 +02:00
parent 5411c85793
commit 886ae5b7f2

4
abra
View File

@ -1102,11 +1102,11 @@ sub_help() {
if type "$HELP_CMD" > /dev/null 2>&1; then
"$HELP_CMD"
else
HELP_COMMANDS=$(declare -Ff | grep 'help_' | cut -d' ' -f3)
HELP_COMMANDS=$(declare -Ff | grep 'help_' | cut -d' ' -f3 | sed 's/_/ /g')
error "No help found for '$abra__subcommands_'
Try one of these:
${HELP_COMMANDS//help_/}"
${HELP_COMMANDS//help /}"
fi
}