aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ak b/bin/ak
index edf439d..f1a399b 100755
--- a/bin/ak
+++ b/bin/ak
@@ -62,13 +62,17 @@ case "$1" in
shift
subcmd="$AK_MODULESDIR/$(echo $1 | sed -e 's/ /-/g')"
shift
- if [ -z $1 ] || [ ! -n "$*" ]
+ if [ ! -n $1 ]
then
_ak_log_error "No module selected"
ls -1 $AK_MODULESDIR
exit 1
fi
subargs="$*"
+ if [ ! -n $subargs ]
+ then
+ subargs="--help"
+ fi
if [ ! -f $subcmd/main.sh ]
then
_ak_log_error "No $(basename $subcmd) module"