From d4e498a18f700e288764cdf8799a2b07a76e1615 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 11 Mar 2024 18:47:08 +0200 Subject: More helpful output --- bin/ak | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/ak b/bin/ak index 6a4fc01..ce8fb14 100755 --- a/bin/ak +++ b/bin/ak @@ -17,7 +17,7 @@ then args="-h" if [ -n "$subcmd" ] then - echo $subcmd + echo $subcmd | cut -d '-' -f 2 | sort | uniq | sed -e 's/^/ak /g' # $(echo $subcmd) $args fi done @@ -46,6 +46,12 @@ else fi counter=$(($counter + 1)) done + find $AK_BINDIR | while read available + do + echo $(basename $available) |\ + grep ak-$(echo $argv | cut -d ' ' -f 1) |\ + sed -e 's/-/ /g' + done logit "ERROR" "Unknown subcommand: $*" exit 1 fi -- cgit v1.2.3