aboutsummaryrefslogtreecommitdiff
path: root/bin/ak
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak')
-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