1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 22:15:36 -07:00

Reset arguments on 'kiss help' function

This removes the previous arguments when calling kiss help so that
they are not listed as extensions. This is not a big issue, but
someone can type

    kiss help please

and 'please' would be shown as an available extension.

Signed-off-by: Dylan Araps <dylan.araps@gmail.com>
This commit is contained in:
Cem Keylan 2020-04-19 20:53:25 +03:00 committed by Dylan Araps
parent 772f6beae3
commit df6c55e439

2
kiss
View File

@ -1347,6 +1347,8 @@ args() {
log "Installed extensions (kiss-* in \$PATH)"
set --
for path in $(KISS_PATH=$PATH pkg_find kiss-\* all); do
set -- "${path#*/kiss-}" "$@"
max=$((${#1} > max ? ${#1} : max))