Show the command's usage when no arguments are provided.

This commit is contained in:
Username404-59 2021-02-25 18:51:03 +01:00
parent 69a50e1e79
commit 0049899c86
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -24,6 +24,7 @@ newArgs() {
fi
}
if [ "$#" != 0 ]; then
for it in "$@"
do
case "$it" in
@ -42,6 +43,9 @@ do
usage ;;
esac
done
else
usage
fi
runIt() { eval "$1" " $args"; }