Fix help function names
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
3wc 2021-01-01 01:46:09 +02:00
parent 5411c85793
commit 886ae5b7f2
1 changed files with 2 additions and 2 deletions

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
}