aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-11 18:47:08 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-11 18:47:08 +0200
commitd4e498a18f700e288764cdf8799a2b07a76e1615 (patch)
treef99fba5291da388ba2c3d863466dc8c478ddd463
parentb808eabf7a446a91efa8f5ec5240a8d60f4bc55d (diff)
downloadarching-kaos-tools-d4e498a18f700e288764cdf8799a2b07a76e1615.tar.gz
arching-kaos-tools-d4e498a18f700e288764cdf8799a2b07a76e1615.tar.bz2
arching-kaos-tools-d4e498a18f700e288764cdf8799a2b07a76e1615.zip
More helpful output
-rwxr-xr-xbin/ak8
1 files changed, 7 insertions, 1 deletions
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