Fix help function names
This commit is contained in:
parent
5411c85793
commit
886ae5b7f2
4
abra
4
abra
@ -1102,11 +1102,11 @@ sub_help() {
|
|||||||
if type "$HELP_CMD" > /dev/null 2>&1; then
|
if type "$HELP_CMD" > /dev/null 2>&1; then
|
||||||
"$HELP_CMD"
|
"$HELP_CMD"
|
||||||
else
|
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_'
|
error "No help found for '$abra__subcommands_'
|
||||||
|
|
||||||
Try one of these:
|
Try one of these:
|
||||||
${HELP_COMMANDS//help_/}"
|
${HELP_COMMANDS//help /}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user